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.10 by pippijn, Sun Jul 2 15:05:15 2006 UTC vs.
Revision 1.46 by root, Mon Oct 29 23:56:44 2012 UTC

1# 1#
2# Makefile for crossfire 0.95.0 and beyond 2# This file is part of Deliantra, the Roguelike Realtime MMORPG.
3# 3#
4# This file will eventually be replaced by a configure script. But for 4# Copyright (©) 2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5# now, this simple makefile should do the job. 5# Copyright (©) 2001 Mark Wedel & Crossfire Development Team
6# Copyright (©) 1992 Frank Tore Johansen
6# 7#
7# Copyright (C) 2001 Mark Wedel & Crossfire Development Team 8# Deliantra is free software: you can redistribute it and/or modify it under
8# Copyright (C) 1992 Frank Tore Johansen 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.
9# 12#
10# This program is free software; you can redistribute it and/or modify 13# This program is distributed in the hope that it will be useful,
11# it under the terms of the GNU General Public License as published by 14# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# the Free Software Foundation; either version 2 of the License, or 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# (at your option) any later version. 16# GNU General Public License for more details.
14# 17#
15# This program is distributed in the hope that it will be useful, 18# You should have received a copy of the Affero GNU General Public License
16# but WITHOUT ANY WARRANTY; without even the implied warranty of 19# and the GNU General Public License along with this program. If not, see
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20# <http://www.gnu.org/licenses/>.
18# GNU General Public License for more details.
19# 21#
20# You should have received a copy of the GNU General Public License 22# The authors can be reached via e-mail to <support@deliantra.net>
21# along with this program; if not, write to the Free Software
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
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 = cf.pm
30dist_pkgdata_DATA = artifacts def_help formulae messages races \
31 animations archetypes bmaps bmaps.paths crossfire.0 \
32 faces attackmess image_info smooth materials regions cf.pm
33 29
34CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules 30pmdir = $(pkgdatadir)/cf
35VAR_FILES = highscore banish_file bookarch temp.maps clockdata 31dist_pm_DATA = cf/pod.pm cf/match.pm cf/mapscript.pm cf/incloader.pm
36EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures treasures.bld
37 32
38helpdir=$(pkgdatadir)/help 33admdir = $(pkgdatadir)/adm
39dist_help_DATA = \ 34dist_adm_DATA = adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl adm/collect_images.pl
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 35
57wizhelpdir=$(pkgdatadir)/wizhelp 36CONF_FILES = settings dm_file config
58dist_wizhelp_DATA = wizhelp/abil wizhelp/addexp \ 37VAR_FILES = highscore bookarch temp.maps
59 wizhelp/banish \ 38EXTRA_DIST = README $(CONF_FILES)
60 wizhelp/create wizhelp/debug \
61 wizhelp/dump wizhelp/dumpallarchtypes \
62 wizhelp/dumpallmaps wizhelp/dumpallobjects \
63 wizhelp/dumpbelow wizhelp/dumpfriendlyobjects \
64 wizhelp/forget_spell wizhelp/free \
65 wizhelp/goto wizhelp/hide wizhelp/insert_into \
66 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 wizhelp/stats \
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 39
84admdir=$(pkgdatadir)/adm 40MAINTAINERCLEANFILES = 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 = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in
90 41
91PERL = @PERL@ 42PERL = @PERL@
92 43
93crossfire.0: bmaps.paths 44install-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
118smooth: .collect-stamp
119 make collect
120
121install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl
122 @$(NORMAL_INSTALL) 45 @$(NORMAL_INSTALL)
46 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/maps
123 $(mkinstalldirs) $(DESTDIR)$(pkgconfdir) 47 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgconfdir)
124 for i in $(CONF_FILES); do \ 48 for i in $(CONF_FILES); do \
125 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ 49 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \
126 echo "Installing $$i"; \ 50 echo "Installing $$i"; \
127 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ 51 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \
128 fi \ 52 fi \
129 done 53 done
130
131 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir) 54 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)
132 for i in $(VAR_FILES) ; do \ 55 for i in $(VAR_FILES) ; do \
133 touch $(DESTDIR)$(pkgstatedir)/$$i ; \ 56 touch $(DESTDIR)$(pkgstatedir)/$$i ; \
134 done 57 done
135
136 @for i in datafiles players unique-items template-maps maps; do \ 58 @for i in datafiles players unique-items template-maps maps random db tmp; do \
137 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ 59 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \
138 echo "Creating directory $(pkgstatedir)/$$i"; \ 60 echo "Creating directory $(pkgstatedir)/$$i"; \
139 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir)/$$i; \ 61 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \
140 fi; \ 62 fi; \
141 done 63 done
142# Special case above because the name we install to is different
143# than the name of the file
144 if [ ! -d $(DESTDIR)$(pkgdatadir)/$$i ]; then \
145 echo "Creating directory $(pkgdatadir)/$$i"; \
146 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$$i; \
147 fi; \
148 $(INSTALL_DATA) $(srcdir)/treasures.bld $(DESTDIR)$(pkgdatadir)/treasures
149
150 64
151# Uninstall unchanged config/var files so make distcheck is happy 65# Uninstall unchanged config/var files so make distcheck is happy
152# but leave changed file, so no configuration/game state is lost 66# but leave changed file, so no configuration/game state is lost
153uninstall-local: 67uninstall-local:
154 -for i in $(CONF_FILES); do \ 68 -for i in $(CONF_FILES); do \
161 done 75 done
162 -for i in $(VAR_FILES) ; do \ 76 -for i in $(VAR_FILES) ; do \
163 if test ! -f $(DESTDIR)$(pkgstatedir)/$$i ; then \ 77 if test ! -f $(DESTDIR)$(pkgstatedir)/$$i ; then \
164 continue ;\ 78 continue ;\
165 fi ; \ 79 fi ; \
166 if test `wc -c $(DESTDIR)$(pkgstatedir)/$$i|$(AWK) '{ print $$1 }'` -eq "0" ; then \ 80 if ! [ -s "$(DESTDIR)$(pkgstatedir)/$$i" ] ; then \
167 rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ 81 rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \
168 fi ; \ 82 fi ; \
169 done 83 done
170 84
171 85
172# This block makes the archive of the arch directory.
173archive::
174 $(AMTAR) -cvh --exclude=dev --exclude=CVS -f $(PACKAGE)-$(VERSION)-arch.tar arch
175 $(GZIP) -cv9 $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.gz
176 $(BZIP) -cv --repetitive-best $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.bz2
177 $(RM) $(PACKAGE)-$(VERSION)-arch.tar
178
179libArch:
180 tar cvf A`perl puredate.pl`.tar arch treasures
181 gzip A`perl puredate.pl`.tar

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines