1 | # |
1 | # |
2 | # Makefile for crossfire 0.95.0 and beyond |
2 | # This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game. |
|
|
3 | # |
|
|
4 | # Copyright (©) 2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team |
|
|
5 | # Copyright (©) 2001,2007 Mark Wedel & Crossfire Development Team |
|
|
6 | # Copyright (©) 1992,2007 Frank Tore Johansen |
|
|
7 | # |
|
|
8 | # Crossfire TRT is free software; you can redistribute it and/or modify it |
|
|
9 | # under the terms of the GNU General Public License as published by the Free |
|
|
10 | # Software Foundation; either version 2 of the License, or (at your option) |
|
|
11 | # any later version. |
|
|
12 | # |
|
|
13 | # This program is distributed in the hope that it will be useful, but |
|
|
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
|
|
15 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
|
16 | # for more details. |
|
|
17 | # |
|
|
18 | # You should have received a copy of the GNU General Public License along |
|
|
19 | # with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51 |
|
|
20 | # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
|
21 | # |
|
|
22 | # The authors can be reached via e-mail to <crossfire@schmorp.de> |
3 | # |
23 | # |
4 | # This file will eventually be replaced by a configure script. But for |
|
|
5 | # now, this simple makefile should do the job. |
|
|
6 | # |
|
|
7 | # Copyright (C) 2001 Mark Wedel & Crossfire Development Team |
|
|
8 | # Copyright (C) 1992 Frank Tore Johansen |
|
|
9 | # |
|
|
10 | # This program is free software; you can redistribute it and/or modify |
|
|
11 | # it under the terms of the GNU General Public License as published by |
|
|
12 | # the Free Software Foundation; either version 2 of the License, or |
|
|
13 | # (at your option) any later version. |
|
|
14 | # |
|
|
15 | # This program is distributed in the hope that it will be useful, |
|
|
16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
18 | # GNU General Public License for more details. |
|
|
19 | # |
|
|
20 | # You should have received a copy of the GNU General Public License |
|
|
21 | # along with this program; if not, write to the Free Software |
|
|
22 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|
|
23 | # |
|
|
24 | # The authors can be reached via e-mail to crossfire-devel@real-time.com |
|
|
25 | |
24 | |
26 | pkgstatedir = @pkgstatedir@ |
25 | pkgstatedir = @pkgstatedir@ |
27 | |
26 | |
28 | WIZHELPFILES = helpfiles/abil helpfiles/addexp helpfiles/banish helpfiles/create helpfiles/debug helpfiles/dump helpfiles/dumpallarchtypes helpfiles/dumpallmaps helpfiles/dumpallobjects helpfiles/dumpbelow helpfiles/dumpfriendlyobjects helpfiles/forget_spell helpfiles/free helpfiles/goto helpfiles/hide helpfiles/insert_into helpfiles/invisible helpfiles/kick helpfiles/learn_special_prayer helpfiles/learn_spell helpfiles/mon_aggr helpfiles/nodm helpfiles/nowiz helpfiles/overlay_save helpfiles/patch helpfiles/perl-reload helpfiles/plugin helpfiles/pluglist helpfiles/plugout helpfiles/possess helpfiles/printlos helpfiles/remove helpfiles/reset helpfiles/server_speed helpfiles/set_god helpfiles/shutdown helpfiles/spellreset helpfiles/ssdumptable helpfiles/stats helpfiles/style_info helpfiles/summon helpfiles/teleport helpfiles/toggle_shout helpfiles/wizcast helpfiles/wizpass |
27 | poddir=$(pkgdatadir)/pod |
29 | HELPFILES = helpfiles/accept-invitation helpfiles/afk helpfiles/apply helpfiles/applymode helpfiles/body helpfiles/bowmode helpfiles/brace helpfiles/cast helpfiles/chat helpfiles/drop helpfiles/dropall helpfiles/examine helpfiles/follow helpfiles/get helpfiles/golem helpfiles/gsay helpfiles/help helpfiles/hiscore helpfiles/ignore helpfiles/inventory helpfiles/invite helpfiles/invoke helpfiles/keys helpfiles/killpets helpfiles/listen helpfiles/logs helpfiles/mapinfo helpfiles/maps helpfiles/mark helpfiles/melee helpfiles/mode helpfiles/motd helpfiles/mouse helpfiles/move helpfiles/output-count helpfiles/output-sync helpfiles/party helpfiles/peaceful helpfiles/petmode helpfiles/pickup helpfiles/prepare helpfiles/quests helpfiles/quit helpfiles/range helpfiles/ready_skill helpfiles/rename helpfiles/reply helpfiles/resistances helpfiles/rotateshoottype helpfiles/save helpfiles/say helpfiles/search-items helpfiles/seen helpfiles/shout helpfiles/showpets helpfiles/skills helpfiles/sort_inventory helpfiles/sound helpfiles/statistics helpfiles/suicide helpfiles/take helpfiles/tell helpfiles/throw helpfiles/time helpfiles/title helpfiles/traps helpfiles/unignore helpfiles/usekeys helpfiles/use_skill helpfiles/version helpfiles/weather helpfiles/whereabouts helpfiles/whereami helpfiles/who helpfiles/wimpy |
28 | dist_pod_DATA = command_help.pod dmcommand_help.pod emote_help.pod skill_help.pod books.pod generic_help.pod |
30 | |
29 | |
31 | dist_noinst_SCRIPTS = genhelp.pl |
30 | dist_noinst_DATA = events.pod |
32 | dist_noinst_DATA = help.pod wizhelp.pod $(HELPFILES) $(WIZHELPFILES) |
|
|
33 | |
31 | |
34 | helpdir=$(pkgdatadir)/help |
|
|
35 | wizhelpdir=$(pkgdatadir)/wizhelp |
|
|
36 | |
32 | |
37 | CLEANFILES = stamp-help stamp-wizhelp Makefile.in $(dist_noinst_DATA) |
|
|
38 | |
|
|
39 | PERL = @PERL@ |
|
|
40 | |
|
|
41 | stamp-help: command_help.pod genhelp.pl |
|
|
42 | mkdir -p helpfiles |
|
|
43 | $(PERL) genhelp.pl $(srcdir)/command_help.pod helpfiles |
|
|
44 | touch stamp-help |
|
|
45 | |
|
|
46 | stamp-wizhelp: dmcommand_help.pod genhelp.pl |
|
|
47 | mkdir -p helpfiles |
|
|
48 | $(PERL) genhelp.pl $(srcdir)/dmcommand_help.pod helpfiles |
|
|
49 | touch stamp-wizhelp |
|
|
50 | |
|
|
51 | help.pod: stamp-help |
|
|
52 | |
|
|
53 | wizhelp.pod: stamp-wizhelp |
|
|
54 | |
|
|
55 | all: stamp-help stamp-wizhelp |
|
|
56 | |
|
|
57 | install-help: |
|
|
58 | if [ ! -d $(DESTDIR)$(helpdir) ]; then mkdir $(DESTDIR)$(helpdir); fi |
|
|
59 | for i in $(HELPFILES); do \ |
|
|
60 | if [ ! -f $(DESTDIR)$(helpdir)/$Si ]; then \ |
|
|
61 | echo "Installing $$i"; \ |
|
|
62 | $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(helpdir); \ |
|
|
63 | fi \ |
|
|
64 | done |
|
|
65 | |
|
|
66 | install-wizhelp: |
|
|
67 | if [ ! -d $(DESTDIR)$(wizhelpdir) ]; then mkdir $(DESTDIR)$(wizhelpdir); fi |
|
|
68 | for i in $(WIZHELPFILES); do \ |
|
|
69 | if [ ! -f $(DESTDIR)$(wizhelpdir)/$Si ]; then \ |
|
|
70 | echo "Installing $$i"; \ |
|
|
71 | $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(wizhelpdir); \ |
|
|
72 | fi \ |
|
|
73 | done |
|
|
74 | |
|
|
75 | install: all install-help install-wizhelp |
|
|
76 | |
|
|