aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-03-01 12:23:45 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-03-01 12:23:45 +0000
commitfa07b756da845efefcb4af6c0a768b89a98cf870 (patch)
tree3051a15d0a9c00adcd1b641bc52bab2982d98ba7
parent45ddc4c6949f98098a1f0dbb14a9e933c82e0855 (diff)
updated to autogenerate iem_bin_ambi_sources.* when needed
svn path=/trunk/externals/iem/iem_bin_ambi/; revision=4638
-rw-r--r--src/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 7cb2ee7..8e18398 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -6,8 +6,13 @@ default: all
SOURCES=$(sort $(filter %.c, $(wildcard *.c)))
+ifeq (,$(findstring clean, $(MAKECMDGOALS)))
Make.config: Make.config.in configure
./configure
+endif
+
+iem_bin_ambi_sources.c iem_bin_ambi_sources.h:
+ ./makesource.sh
configure: configure.ac
autoconf
@@ -17,9 +22,10 @@ configure: configure.ac
ifeq (,$(findstring clean, $(MAKECMDGOALS)))
-include $(SOURCES:.c=.d)
--include Make.config
endif
+-include Make.config
+
## 2nd only generate depend-files when we have Make.config included
## and thus MAKEDEP_FLAGS defined
ifdef MAKEDEP_FLAGS
@@ -40,7 +46,7 @@ TARGETS = $(SOURCES:.c=.o)
all: $(LIBNAME)
cp $(LIBNAME).$(EXT) ..
-$(LIBNAME): $(TARGETS)
+$(LIBNAME): $(TARGETS) iem_bin_ambi_sources.c iem_bin_ambi_sources.h
$(LD) $(LFLAGS) -o $(LIBNAME).$(EXT) *.o $(LIBS)
$(STRIP) $(STRIPFLAGS) $(LIBNAME).$(EXT)