summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in29
1 files changed, 21 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in
index d61a885b4..e987c713f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,14 +1,17 @@
+# Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+# See the LICENSE file
+
@SET_MAKE@
HAVE_MYSQL=@HAVE_MYSQL@
ifeq ($(HAVE_MYSQL),yes)
- ALL_DEPENDS=common_sql login_sql char_sql map_sql tools | import
- SQL_DEPENDS=common_sql login_sql char_sql map_sql | import
- COMMON_SQL_DEPENDS=mt19937ar libconfig
- LOGIN_SQL_DEPENDS=mt19937ar libconfig common_sql
- CHAR_SQL_DEPENDS=mt19937ar libconfig common_sql
- MAP_SQL_DEPENDS=mt19937ar libconfig common_sql
- TOOLS_DEPENDS=mt19937ar libconfig common_sql
+ ALL_DEPENDS=common_sql login_sql char_sql map_sql tools sysinfo | import
+ SQL_DEPENDS=common_sql login_sql char_sql map_sql sysinfo | import
+ COMMON_SQL_DEPENDS=mt19937ar libconfig sysinfo
+ LOGIN_SQL_DEPENDS=mt19937ar libconfig common_sql sysinfo
+ CHAR_SQL_DEPENDS=mt19937ar libconfig common_sql sysinfo
+ MAP_SQL_DEPENDS=mt19937ar libconfig common_sql sysinfo
+ TOOLS_DEPENDS=mt19937ar libconfig common_sql sysinfo
else
ALL_DEPENDS=needs_mysql
SQL_DEPENDS=needs_mysql
@@ -51,6 +54,7 @@ export CC
clean \
buildclean \
distclean \
+ sysinfo \
hooks \
help
@@ -140,6 +144,14 @@ clean buildclean: $(MF_TARGETS)
distclean: clean
@-rm -f $(MF_TARGETS) config.status config.log
+sysinfo:
+ @./sysinfogen.sh src/common/sysinfo_new.inc @CFLAGS@
+ @if cmp -s src/common/sysinfo.inc src/common/sysinfo_new.inc; then \
+ rm src/common/sysinfo_new.inc ; \
+ else \
+ mv src/common/sysinfo_new.inc src/common/sysinfo.inc ; \
+ fi
+
help: Makefile
@echo "most common targets are 'all' 'sql' 'clean' 'plugins' 'help'"
@echo "possible targets are:"
@@ -161,8 +173,9 @@ help: Makefile
@echo "'buildclean' - cleans build temporary (object) files, without deleting the"
@echo " executables"
@echo "'distclean' - cleans files generated by ./configure"
+ @echo "'sysinfo' - re-generates the System Info include"
ifeq ($(HAVE_PERL)$(HAVE_DOXYGEN),yesyes)
- @echo "'hooks' - re-generates the definitions for the HPM Hooking plugin"
+ @echo "'hooks' - re-generates the definitions for the HPM"
endif
@echo "'help' - outputs this message"