summaryrefslogtreecommitdiff
path: root/3rdparty
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-09-21 20:03:52 +0200
committerHaru <haru@dotalux.com>2013-09-21 20:17:52 +0200
commitbeaf3a26a60d5b0429a577b7d58232957d4483e7 (patch)
treec760824c93ccc58cbdbb21bf820a4b72cc1e32dc /3rdparty
parent0d12201adecaf21fccfee8e62a2d2a5582535ae3 (diff)
downloadhercules-beaf3a26a60d5b0429a577b7d58232957d4483e7.tar.gz
hercules-beaf3a26a60d5b0429a577b7d58232957d4483e7.tar.bz2
hercules-beaf3a26a60d5b0429a577b7d58232957d4483e7.tar.xz
hercules-beaf3a26a60d5b0429a577b7d58232957d4483e7.zip
Added Makefile.in change detection (and auto-rebuild) capabilities
- If a Makefile.in is changed, ./config.status (or ./configure in case it's not available) will be automatically run to update the Makefiles. - Special thanks to Yommy for the idea. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/libconfig/Makefile.in5
-rw-r--r--3rdparty/mt19937ar/Makefile.in4
2 files changed, 8 insertions, 1 deletions
diff --git a/3rdparty/libconfig/Makefile.in b/3rdparty/libconfig/Makefile.in
index d6714e50e..048a1b3b7 100644
--- a/3rdparty/libconfig/Makefile.in
+++ b/3rdparty/libconfig/Makefile.in
@@ -24,6 +24,9 @@ help:
#####################################################################
-%.o: %.c $(LIBCONFIG_H)
+Makefile: Makefile.in
+ @$(MAKE) -C ../.. 3rdparty/libconfig/Makefile
+
+%.o: %.c $(LIBCONFIG_H) Makefile
@echo " CC $<"
@$(CC) @CFLAGS@ @DEFS@ @CPPFLAGS@ -c $(OUTPUT_OPTION) $<
diff --git a/3rdparty/mt19937ar/Makefile.in b/3rdparty/mt19937ar/Makefile.in
index 7891bbd2d..c48848c8d 100644
--- a/3rdparty/mt19937ar/Makefile.in
+++ b/3rdparty/mt19937ar/Makefile.in
@@ -24,6 +24,10 @@ help:
#####################################################################
+Makefile: Makefile.in
+ @$(MAKE) -C ../.. 3rdparty/mt19937ar/Makefile
+
+%.o: %.c $(LIBCONFIG_H) Makefile
%.o: %.c $(MT19937AR_H)
@echo " CC $<"
@$(CC) @CFLAGS@ @CPPFLAGS@ -c $(OUTPUT_OPTION) $<