ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/Makefile.am
(Generate patch)

Comparing deliantra/server/lib/Makefile.am (file contents):
Revision 1.1.1.1 by root, Fri Feb 3 07:12:51 2006 UTC vs.
Revision 1.39 by root, Thu Oct 15 21:49:01 2009 UTC

1# 1#
2# Makefile for crossfire 0.95.0 and beyond 2# This file is part of Deliantra, the Roguelike Realtime MMORPG.
3#
4# Copyright (©) 2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5# Copyright (©) 2001,2007 Mark Wedel & Crossfire Development Team
6# Copyright (©) 1992,2007 Frank Tore Johansen
7#
8# Deliantra is free software: you can redistribute it and/or modify it under
9# the terms of the Affero GNU General Public License as published by the
10# Free Software Foundation, either version 3 of the License, or (at your
11# option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the Affero GNU General Public License
19# and the GNU General Public License along with this program. If not, see
20# <http://www.gnu.org/licenses/>.
21#
22# The authors can be reached via e-mail to <support@deliantra.net>
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
26pkgstatedir = @pkgstatedir@ 25pkgstatedir = @pkgstatedir@
27pkgconfdir = @pkgconfdir@ 26pkgconfdir = @pkgconfdir@
28 27
29dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl 28nobase_dist_pkgdata_DATA = artifacts formulae races \
30dist_pkgdata_DATA = artifacts def_help formulae messages races smooth\ 29 attackmess materials cf.pm
31 animations archetypes bmaps bmaps.paths crossfire.0 \
32 crossfire.1 faces attackmess image_info materials regions
33 30
34CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules 31pmdir = $(pkgdatadir)/cf
35VAR_FILES = highscore banish_file bookarch temp.maps clockdata 32dist_pm_DATA = cf/pod.pm cf/match.pm cf/mapscript.pm
36EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures treasures.bld
37 33
38helpdir=$(pkgdatadir)/help 34admdir = $(pkgdatadir)/adm
39dist_help_DATA = help/apply help/applymode \ 35dist_adm_DATA = adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl adm/collect_images.pl
40 help/bind help/bowmode help/brace \
41 help/cast help/drop help/dropall \
42 help/golem help/invoke \
43 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 36
58wizhelpdir=$(pkgdatadir)/wizhelp 37CONF_FILES = settings dm_file exp_table config
59dist_wizhelp_DATA = wizhelp/abil wizhelp/addexp \ 38VAR_FILES = highscore bookarch temp.maps
60 wizhelp/banish \ 39EXTRA_DIST = README $(CONF_FILES)
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/invisible \
67 wizhelp/kick wizhelp/learn_special_prayer \
68 wizhelp/learn_spell wizhelp/mon_aggr \
69 wizhelp/nodm \
70 wizhelp/nowiz wizhelp/overlay_save \
71 wizhelp/patch wizhelp/plugin \
72 wizhelp/pluglist wizhelp/plugout \
73 wizhelp/possess \
74 wizhelp/printlos wizhelp/remove \
75 wizhelp/reset wizhelp/set_god \
76 wizhelp/shutdown wizhelp/server_speed \
77 wizhelp/spellreset wizhelp/ssdumptable \
78 wizhelp/style_info wizhelp/summon \
79 wizhelp/teleport wizhelp/time \
80 wizhelp/toggle_shout \
81 wizhelp/who wizhelp/wizcast wizhelp/wizhelp \
82 wizhelp/wizpass
83 40
84admdir=$(pkgdatadir)/adm 41MAINTAINERCLEANFILES = Makefile.in
85dist_adm_SCRIPTS = \
86 adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl \
87 adm/collect_images.pl
88
89MAINTAINERCLEANFILES = archetypes bmaps faces .collect-stamp
90 42
91PERL = @PERL@ 43PERL = @PERL@
92 44
93crossfire.0: bmaps.paths 45install-data-local:
94 $(PERL) $(srcdir)/adm/collect_images.pl -png
95
96.collect-stamp:
97 touch .collect-stamp
98
99collect:
100 $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch
101 $(PERL) $(srcdir)/adm/collect_images.pl -png
102
103archonly:
104 $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch ARCHONLY
105
106archetypes: .collect-stamp
107 make collect
108
109faces: .collect-stamp
110 make collect
111
112animations: .collect-stamp
113 make collect
114
115bmaps.paths bmaps: .collect-stamp
116 make collect
117
118install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl
119 @$(NORMAL_INSTALL) 46 @$(NORMAL_INSTALL)
47 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/maps
120 $(mkinstalldirs) $(DESTDIR)$(pkgconfdir) 48 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgconfdir)
121 for i in $(CONF_FILES); do \ 49 for i in $(CONF_FILES); do \
122 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ 50 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \
123 echo "Installing $$i"; \ 51 echo "Installing $$i"; \
124 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ 52 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \
125 fi \ 53 fi \
126 done 54 done
127
128 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir) 55 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)
129 for i in $(VAR_FILES) ; do \ 56 for i in $(VAR_FILES) ; do \
130 touch $(DESTDIR)$(pkgstatedir)/$$i ; \ 57 touch $(DESTDIR)$(pkgstatedir)/$$i ; \
131 done 58 done
132
133 @for i in datafiles players unique-items template-maps maps; do \ 59 @for i in datafiles players unique-items template-maps maps random db tmp; do \
134 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ 60 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \
135 echo "Creating directory $(pkgstatedir)/$$i"; \ 61 echo "Creating directory $(pkgstatedir)/$$i"; \
136 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir)/$$i; \ 62 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \
137 fi; \ 63 fi; \
138 done 64 done
139# Special case above because the name we install to is different
140# than the name of the file
141 if [ ! -d $(DESTDIR)$(pkgdatadir)/$$i ]; then \
142 echo "Creating directory $(pkgdatadir)/$$i"; \
143 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$$i; \
144 fi; \
145 $(INSTALL_DATA) $(srcdir)/treasures.bld $(DESTDIR)$(pkgdatadir)/treasures
146
147 65
148# Uninstall unchanged config/var files so make distcheck is happy 66# Uninstall unchanged config/var files so make distcheck is happy
149# but leave changed file, so no configuration/game state is lost 67# but leave changed file, so no configuration/game state is lost
150uninstall-local: 68uninstall-local:
151 -for i in $(CONF_FILES); do \ 69 -for i in $(CONF_FILES); do \
158 done 76 done
159 -for i in $(VAR_FILES) ; do \ 77 -for i in $(VAR_FILES) ; do \
160 if test ! -f $(DESTDIR)$(pkgstatedir)/$$i ; then \ 78 if test ! -f $(DESTDIR)$(pkgstatedir)/$$i ; then \
161 continue ;\ 79 continue ;\
162 fi ; \ 80 fi ; \
163 if test `wc -c $(DESTDIR)$(pkgstatedir)/$$i|$(AWK) '{ print $$1 }'` -eq "0" ; then \ 81 if ! [ -s "$(DESTDIR)$(pkgstatedir)/$$i" ] ; then \
164 rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ 82 rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \
165 fi ; \ 83 fi ; \
166 done 84 done
167 85
168 86
169# This block makes the archive of the arch directory.
170archive::
171 $(AMTAR) -cvh --exclude=dev --exclude=CVS -f $(PACKAGE)-$(VERSION)-arch.tar arch
172 $(GZIP) -cv9 $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.gz
173 $(BZIP) -cv --repetitive-best $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.bz2
174 $(RM) $(PACKAGE)-$(VERSION)-arch.tar
175
176libArch:
177 tar cvf A`perl puredate.pl`.tar arch treasures
178 gzip A`perl puredate.pl`.tar

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines