diff options
author | Haru <haru@dotalux.com> | 2013-09-21 20:03:52 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-09-21 20:17:52 +0200 |
commit | beaf3a26a60d5b0429a577b7d58232957d4483e7 (patch) | |
tree | c760824c93ccc58cbdbb21bf820a4b72cc1e32dc /src/common/Makefile.in | |
parent | 0d12201adecaf21fccfee8e62a2d2a5582535ae3 (diff) | |
download | hercules-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/common/Makefile.in')
-rw-r--r-- | src/common/Makefile.in | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/common/Makefile.in b/src/common/Makefile.in index 00d63dd5e..78f9cd0d1 100644 --- a/src/common/Makefile.in +++ b/src/common/Makefile.in @@ -59,6 +59,9 @@ help: ##################################################################### +Makefile: Makefile.in + @$(MAKE) -C ../.. src/common/Makefile + needs_mysql: @echo "MySQL not found or disabled by the configure script" @exit 1 @@ -73,23 +76,23 @@ obj_sql: @echo " MKDIR obj_sql" @-mkdir obj_sql -obj_all/common.a: $(COMMON_OBJ) +obj_all/common.a: $(COMMON_OBJ) Makefile @echo " AR $@" @@AR@ rcs obj_all/common.a $(COMMON_OBJ) -obj_all/common_mini.a: $(COMMON_MINI_OBJ) +obj_all/common_mini.a: $(COMMON_MINI_OBJ) Makefile @echo " AR $@" @@AR@ rcs obj_all/common_mini.a $(COMMON_MINI_OBJ) -obj_sql/common_sql.a: $(COMMON_SQL_OBJ) +obj_sql/common_sql.a: $(COMMON_SQL_OBJ) Makefile @echo " AR $@" @@AR@ rcs obj_sql/common_sql.a $(COMMON_SQL_OBJ) -common: $(COMMON_OBJ) $(MT19937AR_OBJ) $(LIBCONFIG_OBJ) obj_all/common.a +common: $(COMMON_OBJ) $(MT19937AR_OBJ) $(LIBCONFIG_OBJ) obj_all/common.a Makefile -common_mini: $(COMMON_MINI_OBJ) $(MT19937AR_OBJ) $(LIBCONFIG_OBJ) obj_all/common_mini.a +common_mini: $(COMMON_MINI_OBJ) $(MT19937AR_OBJ) $(LIBCONFIG_OBJ) obj_all/common_mini.a Makefile -common_sql: $(COMMON_SQL_OBJ) obj_sql/common_sql.a +common_sql: $(COMMON_SQL_OBJ) obj_sql/common_sql.a Makefile obj_all/%.o: %.c $(COMMON_H) $(CONFIG_H) $(MT19937AR_H) $(LIBCONFIG_H) | obj_all @echo " CC $<" |