From b017323a5955bcaaa19dfea4fc651a253bfdd552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 6 Mar 2006 11:44:59 +0000 Subject: better dependencies; regenerate z_zexy.{c,h} if necessary svn path=/trunk/externals/zexy/; revision=4651 --- src/Makefile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index ffc3a15..e0b3c25 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,10 +4,7 @@ default: all clean realclean distclean \ install install-bin install-doc install-abs -SOURCES=$(sort $(filter %.c, $(wildcard *.c))) - -Make.config: Make.config.in configure - ./configure +SOURCES=$(sort $(filter %.c, $(wildcard *.c)) z_zexy.c) zexyconf.h: zexyconf.h.in configure ./configure @@ -20,9 +17,17 @@ configure: configure.ac ifeq (,$(findstring clean, $(MAKECMDGOALS))) -include $(SOURCES:.c=.d) --include Make.config + +Make.config: Make.config.in configure + ./configure + +z_zexy.c z_zexy.h: + ./makesource.sh endif +-include Make.config + + ## 2nd only generate depend-files when we have Make.config included ## and thus MAKEDEP_FLAGS defined ifdef MAKEDEP_FLAGS @@ -43,7 +48,7 @@ TARGETS = $(SOURCES:.c=.o) all: $(LIBNAME) cp $(LIBNAME).$(EXT) .. -$(LIBNAME): $(TARGETS) +$(LIBNAME): $(TARGETS) z_zexy.c z_zexy.h $(LD) $(LFLAGS) -o $(LIBNAME).$(EXT) *.o $(LIBS) $(STRIP) $(STRIPFLAGS) $(LIBNAME).$(EXT) -- cgit v1.2.1