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.20 by root, Sat Jan 20 22:09:52 2007 UTC vs.
Revision 1.37 by root, Sun Oct 11 00:24:35 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
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your 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 GNU General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21# The authors can be reached via e-mail to <support@deliantra.net>
3# 22#
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@schmorp.de
25 23
26pkgstatedir = @pkgstatedir@ 24pkgstatedir = @pkgstatedir@
27pkgconfdir = @pkgconfdir@ 25pkgconfdir = @pkgconfdir@
28 26
29dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl
30dist_pkgdata_DATA = artifacts def_help formulae messages races \ 27nobase_dist_pkgdata_DATA = artifacts formulae races \
31 animations archetypes bmaps bmaps.paths crossfire.0 \ 28 attackmess materials cf.pm
32 faces attackmess image_info smooth materials cf.pm jeweler.yaml \
33 world.pst
34 29
35CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules config 30pmdir = $(pkgdatadir)/cf
36VAR_FILES = highscore banish_file bookarch temp.maps clockdata 31dist_pm_DATA = cf/pod.pm cf/match.pm cf/mapscript.pm
37EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld world.png
38 32
39wizhelpdir=$(pkgdatadir)/wizhelp 33admdir = $(pkgdatadir)/adm
40dist_wizhelp_DATA = wizhelp/abil wizhelp/addexp \ 34dist_adm_DATA = adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl adm/collect_images.pl
41 wizhelp/banish \
42 wizhelp/create wizhelp/debug \
43 wizhelp/dump wizhelp/dumpallarchtypes \
44 wizhelp/dumpallmaps wizhelp/dumpallobjects \
45 wizhelp/dumpbelow wizhelp/dumpfriendlyobjects \
46 wizhelp/forget_spell wizhelp/free \
47 wizhelp/goto wizhelp/hide wizhelp/insert_into \
48 wizhelp/invisible \
49 wizhelp/kick wizhelp/learn_special_prayer \
50 wizhelp/learn_spell wizhelp/mon_aggr \
51 wizhelp/nodm \
52 wizhelp/nowiz wizhelp/overlay_save \
53 wizhelp/patch wizhelp/plugin \
54 wizhelp/pluglist wizhelp/plugout \
55 wizhelp/possess \
56 wizhelp/printlos wizhelp/remove \
57 wizhelp/reset wizhelp/set_god \
58 wizhelp/shutdown wizhelp/server_speed \
59 wizhelp/spellreset wizhelp/ssdumptable wizhelp/stats \
60 wizhelp/style_info wizhelp/summon \
61 wizhelp/teleport wizhelp/time \
62 wizhelp/toggle_shout \
63 wizhelp/who wizhelp/wizcast wizhelp/wizhelp \
64 wizhelp/wizpass
65 35
66admdir=$(pkgdatadir)/adm 36CONF_FILES = settings motd dm_file exp_table news rules config
67dist_adm_SCRIPTS = \ 37VAR_FILES = highscore bookarch temp.maps
68 adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl \ 38EXTRA_DIST = README $(CONF_FILES)
69 adm/collect_images.pl
70 39
71MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in 40MAINTAINERCLEANFILES = Makefile.in
72 41
73PERL = @PERL@ 42PERL = @PERL@
74 43
75crossfire.0: bmaps.paths 44install-data-local:
76 $(PERL) $(srcdir)/adm/collect_images.pl -png
77
78.collect-stamp:
79 touch .collect-stamp
80
81collect:
82 $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch
83 $(PERL) $(srcdir)/adm/collect_images.pl -png
84
85archonly:
86 $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch ARCHONLY
87
88archetypes: .collect-stamp
89 make collect
90
91faces: .collect-stamp
92 make collect
93
94animations: .collect-stamp
95 make collect
96
97bmaps.paths bmaps: .collect-stamp
98 make collect
99
100smooth: .collect-stamp
101 make collect
102
103world.pst: world.png compile_worldmap
104 $(PERL) compile_worldmap
105
106install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl jeweler.yaml
107 @$(NORMAL_INSTALL) 45 @$(NORMAL_INSTALL)
46 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/maps
108 $(mkinstalldirs) $(DESTDIR)$(pkgconfdir) 47 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgconfdir)
109 for i in $(CONF_FILES); do \ 48 for i in $(CONF_FILES); do \
110 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ 49 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \
111 echo "Installing $$i"; \ 50 echo "Installing $$i"; \
112 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ 51 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \
113 fi \ 52 fi \
114 done 53 done
115
116 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir) 54 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)
117 for i in $(VAR_FILES) ; do \ 55 for i in $(VAR_FILES) ; do \
118 touch $(DESTDIR)$(pkgstatedir)/$$i ; \ 56 touch $(DESTDIR)$(pkgstatedir)/$$i ; \
119 done 57 done
120
121 @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 \
122 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ 59 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \
123 echo "Creating directory $(pkgstatedir)/$$i"; \ 60 echo "Creating directory $(pkgstatedir)/$$i"; \
124 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir)/$$i; \ 61 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \
125 fi; \ 62 fi; \
126 done 63 done
127# Special case above because the name we install to is different
128# than the name of the file
129 if [ ! -d $(DESTDIR)$(pkgdatadir)/$$i ]; then \
130 echo "Creating directory $(pkgdatadir)/$$i"; \
131 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$$i; \
132 fi; \
133 $(INSTALL_DATA) $(srcdir)/treasures.bld $(DESTDIR)$(pkgdatadir)/treasures
134
135 64
136# Uninstall unchanged config/var files so make distcheck is happy 65# Uninstall unchanged config/var files so make distcheck is happy
137# but leave changed file, so no configuration/game state is lost 66# but leave changed file, so no configuration/game state is lost
138uninstall-local: 67uninstall-local:
139 -for i in $(CONF_FILES); do \ 68 -for i in $(CONF_FILES); do \
152 rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ 81 rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \
153 fi ; \ 82 fi ; \
154 done 83 done
155 84
156 85
157# This block makes the archive of the arch directory.
158archive::
159 $(AMTAR) -cvh --exclude=dev --exclude=CVS -f $(PACKAGE)-$(VERSION)-arch.tar arch
160 $(GZIP) -cv9 $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.gz
161 $(BZIP) -cv --repetitive-best $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.bz2
162 $(RM) $(PACKAGE)-$(VERSION)-arch.tar
163
164libArch:
165 tar cvf A`perl puredate.pl`.tar arch treasures
166 gzip A`perl puredate.pl`.tar

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines