diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 66 |
1 files changed, 23 insertions, 43 deletions
diff --git a/Makefile.in b/Makefile.in index d61a885b4..c91a77c6f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,14 +1,19 @@ +# Copyright (c) Hercules Dev Team, licensed under GNU GPL. +# See the LICENSE file + +# @configure_input@ + @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 +56,7 @@ export CC clean \ buildclean \ distclean \ + sysinfo \ hooks \ help @@ -140,6 +146,14 @@ clean buildclean: $(MF_TARGETS) distclean: clean @-rm -f $(MF_TARGETS) config.status config.log +sysinfo: + @./sysinfogen.sh src/common/sysinfo_new.inc @CFLAGS@ @CPPFLAGS@ + @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 +175,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" @@ -175,38 +190,3 @@ needs_mysql: no_plugins: @echo "Plugins disabled by the configure script" @exit 1 - -##################################################################### -# TODO - -#install: conf/%.conf conf/%.txt -# @read -p "WARNING: This target does not work properly yet. Press Ctrl+C to cancel or Enter to continue." -# @mkdir -p /opt/hercules/bin/ -# @mkdir -p /opt/hercules/etc/hercules/ -# @mkdir -p /opt/hercules/var/log/hercules/ -# @mv save /opt/hercules/etc/hercules/save -# @mv db /opt/hercules/etc/hercules/db -# @mv conf /opt/hercules/etc/hercules/conf -# @mv npc /opt/hercules/etc/hercules/npc -# @mv log/* /opt/hercules/var/log/hercules/ -# @cp *-server /opt/hercules/bin/ -# @ln -s /opt/hercules/etc/hercules/save/ /opt/hercules/bin/ -# @ln -s /opt/hercules/etc/hercules/db/ /opt/hercules/bin/ -# @ln -s /opt/hercules/etc/hercules/conf/ /opt/hercules/bin/ -# @ln -s /opt/hercules/etc/hercules/npc/ /opt/hercules/bin/ -# @ln -s /opt/hercules/var/log/hercules/ /opt/hercules/bin/log - -#bin-clean: -# @rm /opt/hercules/bin/login-server -# @rm /opt/hercules/bin/char-server -# @rm /opt/hercules/bin/map-server - -#uninstall: bin-clean -# @read -p "WARNING: This target does not work properly yet. Press Ctrl+C to cancel or Enter to continue." -# @rm /opt/hercules/bin/save -# @rm /opt/hercules/bin/db -# @rm /opt/hercules/bin/conf -# @rm /opt/hercules/bin/npc -# @rm /opt/hercules/bin/log -# @rm -rf /opt/hercules/etc/hercules -# @rm -rf /opt/hercules/var/log/hercules |