… | |
… | |
19 | # |
19 | # |
20 | # You should have received a copy of the GNU General Public License |
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 |
21 | # along with this program; if not, write to the Free Software |
22 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
22 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
23 | # |
23 | # |
24 | # The authors can be reached via e-mail to crossfire-devel@real-time.com |
24 | # The authors can be reached via e-mail to crossfire@schmorp.de |
25 | |
25 | |
26 | pkgstatedir = @pkgstatedir@ |
26 | pkgstatedir = @pkgstatedir@ |
27 | pkgconfdir = @pkgconfdir@ |
27 | pkgconfdir = @pkgconfdir@ |
28 | |
28 | |
29 | dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl |
29 | dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl |
30 | dist_pkgdata_DATA = artifacts def_help formulae messages races \ |
30 | dist_pkgdata_DATA = artifacts def_help formulae messages races \ |
31 | animations archetypes bmaps bmaps.paths crossfire.0 \ |
31 | animations archetypes bmaps bmaps.paths crossfire.0 \ |
32 | faces attackmess image_info smooth materials cf.pm jeweler.yaml |
32 | faces attackmess image_info smooth materials cf.pm jeweler.yaml \ |
|
|
33 | world.pst |
33 | |
34 | |
34 | CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules |
35 | CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules config |
35 | VAR_FILES = highscore banish_file bookarch temp.maps clockdata |
36 | VAR_FILES = highscore banish_file bookarch temp.maps clockdata |
36 | EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld |
37 | EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld world.png |
37 | |
|
|
38 | helpdir=$(pkgdatadir)/help |
|
|
39 | dist_help_DATA = \ |
|
|
40 | help/apply help/applymode help/bind \ |
|
|
41 | help/bowmode help/brace help/cast \ |
|
|
42 | help/chat help/drop help/dropall \ |
|
|
43 | help/follow help/golem help/ignore \ |
|
|
44 | help/invite help/invoke help/keys \ |
|
|
45 | help/killpets help/listen help/mark \ |
|
|
46 | help/melee help/mode help/mouse \ |
|
|
47 | help/move help/output help/output-count \ |
|
|
48 | help/output-sync help/party help/peaceful \ |
|
|
49 | help/petmode help/pickup help/quests \ |
|
|
50 | help/quit help/range \ |
|
|
51 | help/rename help/reply help/save \ |
|
|
52 | help/shout help/showpets help/sort_inventory \ |
|
|
53 | help/spells help/statistics help/take \ |
|
|
54 | help/tell help/traps help/unbind \ |
|
|
55 | help/unignore help/usekeys help/whereabouts |
|
|
56 | |
38 | |
57 | wizhelpdir=$(pkgdatadir)/wizhelp |
39 | wizhelpdir=$(pkgdatadir)/wizhelp |
58 | dist_wizhelp_DATA = wizhelp/abil wizhelp/addexp \ |
40 | dist_wizhelp_DATA = wizhelp/abil wizhelp/addexp \ |
59 | wizhelp/banish \ |
41 | wizhelp/banish \ |
60 | wizhelp/create wizhelp/debug \ |
42 | wizhelp/create wizhelp/debug \ |
… | |
… | |
116 | make collect |
98 | make collect |
117 | |
99 | |
118 | smooth: .collect-stamp |
100 | smooth: .collect-stamp |
119 | make collect |
101 | make collect |
120 | |
102 | |
|
|
103 | world.pst: world.png compile_worldmap |
|
|
104 | $(PERL) compile_worldmap |
|
|
105 | |
121 | install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl |
106 | install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl jeweler.yaml |
122 | @$(NORMAL_INSTALL) |
107 | @$(NORMAL_INSTALL) |
123 | $(mkinstalldirs) $(DESTDIR)$(pkgconfdir) |
108 | $(mkinstalldirs) $(DESTDIR)$(pkgconfdir) |
124 | for i in $(CONF_FILES); do \ |
109 | for i in $(CONF_FILES); do \ |
125 | if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ |
110 | if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ |
126 | echo "Installing $$i"; \ |
111 | echo "Installing $$i"; \ |
… | |
… | |
161 | done |
146 | done |
162 | -for i in $(VAR_FILES) ; do \ |
147 | -for i in $(VAR_FILES) ; do \ |
163 | if test ! -f $(DESTDIR)$(pkgstatedir)/$$i ; then \ |
148 | if test ! -f $(DESTDIR)$(pkgstatedir)/$$i ; then \ |
164 | continue ;\ |
149 | continue ;\ |
165 | fi ; \ |
150 | fi ; \ |
166 | if test `wc -c $(DESTDIR)$(pkgstatedir)/$$i|$(AWK) '{ print $$1 }'` -eq "0" ; then \ |
151 | if ! [ -s "$(DESTDIR)$(pkgstatedir)/$$i" ] ; then \ |
167 | rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ |
152 | rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ |
168 | fi ; \ |
153 | fi ; \ |
169 | done |
154 | done |
170 | |
155 | |
171 | |
156 | |