1 | # |
1 | # Copyright (C) 2007 Marc Alexander Lehmann |
2 | # Makefile for crossfire 0.95.0 and beyond |
|
|
3 | # |
|
|
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 |
2 | # Copyright (C) 2001 Mark Wedel & Crossfire Development Team |
8 | # Copyright (C) 1992 Frank Tore Johansen |
3 | # Copyright (C) 1992 Frank Tore Johansen |
9 | # |
4 | # |
10 | # This program is free software; you can redistribute it and/or modify |
5 | # 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 |
6 | # it under the terms of the GNU General Public License as published by |
… | |
… | |
19 | # |
14 | # |
20 | # You should have received a copy of the GNU General Public License |
15 | # You should have received a copy of the GNU General Public License |
21 | # along with this program; if not, write to the Free Software |
16 | # along with this program; if not, write to the Free Software |
22 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
23 | # |
18 | # |
24 | # The authors can be reached via e-mail to crossfire-devel@real-time.com |
19 | # The authors can be reached via e-mail to crossfire@schmorp.de |
25 | |
20 | |
26 | pkgstatedir = @pkgstatedir@ |
21 | pkgstatedir = @pkgstatedir@ |
27 | pkgconfdir = @pkgconfdir@ |
22 | pkgconfdir = @pkgconfdir@ |
28 | |
23 | |
29 | dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl |
24 | dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl |
30 | dist_pkgdata_DATA = artifacts def_help formulae messages races smooth\ |
25 | dist_pkgdata_DATA = artifacts def_help formulae messages races \ |
31 | animations archetypes bmaps bmaps.paths crossfire.0 \ |
26 | animations archetypes bmaps bmaps.paths crossfire.0 \ |
32 | crossfire.1 faces attackmess image_info materials regions cf.pm |
27 | faces attackmess image_info smooth materials cf.pm jeweler.yaml |
33 | |
28 | |
34 | CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules |
29 | CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules config |
35 | VAR_FILES = highscore banish_file bookarch temp.maps clockdata |
30 | VAR_FILES = highscore banish_file bookarch temp.maps clockdata |
36 | EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures treasures.bld |
31 | EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld |
37 | |
|
|
38 | helpdir=$(pkgdatadir)/help |
|
|
39 | dist_help_DATA = help/apply help/applymode \ |
|
|
40 | help/bind help/bowmode help/brace \ |
|
|
41 | help/cast help/drop help/dropall \ |
|
|
42 | help/follow help/golem help/invite \ |
|
|
43 | help/invoke help/keys help/killpets \ |
|
|
44 | help/listen \ |
|
|
45 | help/mark help/melee help/mode \ |
|
|
46 | help/mouse help/move \ |
|
|
47 | help/output \ |
|
|
48 | help/output-count help/output-sync \ |
|
|
49 | help/party help/peaceful \ |
|
|
50 | help/petmode help/pickup help/quests \ |
|
|
51 | help/quit help/range help/rename \ |
|
|
52 | help/save help/shout help/showpets \ |
|
|
53 | help/sort_inventory help/spells \ |
|
|
54 | help/statistics help/take help/traps \ |
|
|
55 | help/unbind help/usekeys \ |
|
|
56 | help/whereabouts |
|
|
57 | |
|
|
58 | wizhelpdir=$(pkgdatadir)/wizhelp |
|
|
59 | dist_wizhelp_DATA = wizhelp/abil wizhelp/addexp \ |
|
|
60 | wizhelp/banish \ |
|
|
61 | wizhelp/create wizhelp/debug \ |
|
|
62 | wizhelp/dump wizhelp/dumpallarchtypes \ |
|
|
63 | wizhelp/dumpallmaps wizhelp/dumpallobjects \ |
|
|
64 | wizhelp/dumpbelow wizhelp/dumpfriendlyobjects \ |
|
|
65 | wizhelp/forget_spell wizhelp/free \ |
|
|
66 | wizhelp/goto wizhelp/hide wizhelp/insert_into \ |
|
|
67 | wizhelp/invisible \ |
|
|
68 | wizhelp/kick wizhelp/learn_special_prayer \ |
|
|
69 | wizhelp/learn_spell wizhelp/mon_aggr \ |
|
|
70 | wizhelp/nodm \ |
|
|
71 | wizhelp/nowiz wizhelp/overlay_save \ |
|
|
72 | wizhelp/patch wizhelp/plugin \ |
|
|
73 | wizhelp/pluglist wizhelp/plugout \ |
|
|
74 | wizhelp/possess \ |
|
|
75 | wizhelp/printlos wizhelp/remove \ |
|
|
76 | wizhelp/reset wizhelp/set_god \ |
|
|
77 | wizhelp/shutdown wizhelp/server_speed \ |
|
|
78 | wizhelp/spellreset wizhelp/ssdumptable wizhelp/stats \ |
|
|
79 | wizhelp/style_info wizhelp/summon \ |
|
|
80 | wizhelp/teleport wizhelp/time \ |
|
|
81 | wizhelp/toggle_shout \ |
|
|
82 | wizhelp/who wizhelp/wizcast wizhelp/wizhelp \ |
|
|
83 | wizhelp/wizpass |
|
|
84 | |
32 | |
85 | admdir=$(pkgdatadir)/adm |
33 | admdir=$(pkgdatadir)/adm |
86 | dist_adm_SCRIPTS = \ |
34 | dist_adm_SCRIPTS = \ |
87 | adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl \ |
35 | adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl \ |
88 | adm/collect_images.pl |
36 | adm/collect_images.pl |
89 | |
37 | |
90 | MAINTAINERCLEANFILES = archetypes bmaps faces .collect-stamp |
38 | MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in |
91 | |
39 | |
92 | PERL = @PERL@ |
40 | PERL = @PERL@ |
93 | |
41 | |
94 | crossfire.0: bmaps.paths |
42 | crossfire.0: bmaps.paths |
95 | $(PERL) $(srcdir)/adm/collect_images.pl -png |
43 | $(PERL) $(srcdir)/adm/collect_images.pl -png |
… | |
… | |
114 | make collect |
62 | make collect |
115 | |
63 | |
116 | bmaps.paths bmaps: .collect-stamp |
64 | bmaps.paths bmaps: .collect-stamp |
117 | make collect |
65 | make collect |
118 | |
66 | |
|
|
67 | smooth: .collect-stamp |
|
|
68 | make collect |
|
|
69 | |
119 | install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl |
70 | install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl jeweler.yaml |
120 | @$(NORMAL_INSTALL) |
71 | @$(NORMAL_INSTALL) |
121 | $(mkinstalldirs) $(DESTDIR)$(pkgconfdir) |
72 | $(mkinstalldirs) $(DESTDIR)$(pkgconfdir) |
122 | for i in $(CONF_FILES); do \ |
73 | for i in $(CONF_FILES); do \ |
123 | if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ |
74 | if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ |
124 | echo "Installing $$i"; \ |
75 | echo "Installing $$i"; \ |
… | |
… | |
159 | done |
110 | done |
160 | -for i in $(VAR_FILES) ; do \ |
111 | -for i in $(VAR_FILES) ; do \ |
161 | if test ! -f $(DESTDIR)$(pkgstatedir)/$$i ; then \ |
112 | if test ! -f $(DESTDIR)$(pkgstatedir)/$$i ; then \ |
162 | continue ;\ |
113 | continue ;\ |
163 | fi ; \ |
114 | fi ; \ |
164 | if test `wc -c $(DESTDIR)$(pkgstatedir)/$$i|$(AWK) '{ print $$1 }'` -eq "0" ; then \ |
115 | if ! [ -s "$(DESTDIR)$(pkgstatedir)/$$i" ] ; then \ |
165 | rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ |
116 | rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ |
166 | fi ; \ |
117 | fi ; \ |
167 | done |
118 | done |
168 | |
119 | |
169 | |
120 | |