summaryrefslogtreecommitdiff
path: root/src/test
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 /src/test
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 'src/test')
-rw-r--r--src/test/Makefile.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/Makefile.in b/src/test/Makefile.in
index f17c43202..cb99e7004 100644
--- a/src/test/Makefile.in
+++ b/src/test/Makefile.in
@@ -26,7 +26,7 @@ export CC
#####################################################################
.PHONY: all test_spinlock
-all: test_spinlock
+all: test_spinlock Makefile
clean:
@echo " CLEAN test"
@@ -34,6 +34,9 @@ clean:
#####################################################################
+Makefile: Makefile.in
+ @$(MAKE) -C ../.. src/test/Makefile
+
# object directories
obj:
@@ -42,7 +45,7 @@ obj:
#executables
-test_spinlock: $(TEST_SPINLOCK_DEPENDS)
+test_spinlock: $(TEST_SPINLOCK_DEPENDS) Makefile
@echo " LD $@"
@$(CC) @LDFLAGS@ -o ../../test_spinlock@EXEEXT@ $(TEST_SPINLOCK_OBJ) ../common/obj_sql/common_sql.a ../common/obj_all/common.a $(MT19937AR_OBJ) $(LIBCONFIG_OBJ) @LIBS@ @MYSQL_LIBS@