From c784793fda93bfbed526c325e685b37c7fb348a6 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 24 Mar 2005 20:31:34 +0000 Subject: [PATCH] =?utf8?q?Se=20mejoran=20los=20Makefile=20de=20ejemplo=20p?= =?utf8?q?ara=20que=20de=20un=20error=20m=C3=A1s=20descriptivo=20si=20no?= =?utf8?q?=20hay=20archivos=20de=20entrada.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- doc/examples/Makefile | 5 +++++ doc/examples/Makefile-cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/doc/examples/Makefile b/doc/examples/Makefile index a7751fd..785045f 100644 --- a/doc/examples/Makefile +++ b/doc/examples/Makefile @@ -68,6 +68,11 @@ all: $(target) o_files = $(patsubst %.$(extension),%.o,$(fuentes)) $(target): $(o_files) + @if [ -z "$(o_files)" ]; \ + then \ + echo "No hay archivos de entrada, recuerde que la extensión debe ser '.$(extension)'."; \ + false; \ + fi $(enlazador) $(LDFLAGS) $(o_files) $(LOADLIBES) $(LDLIBS) -o $(target) clean: diff --git a/doc/examples/Makefile-cpp b/doc/examples/Makefile-cpp index 4330eb7..06927ae 100644 --- a/doc/examples/Makefile-cpp +++ b/doc/examples/Makefile-cpp @@ -68,6 +68,11 @@ all: $(target) o_files = $(patsubst %.$(extension),%.o,$(fuentes)) $(target): $(o_files) + @if [ -z "$(o_files)" ]; \ + then \ + echo "No hay archivos de entrada, recuerde que la extensión debe ser '.$(extension)'."; \ + false; \ + fi $(enlazador) $(LDFLAGS) $(o_files) $(LOADLIBES) $(LDLIBS) -o $(target) clean: -- 2.43.0