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.23 by root, Mon Mar 5 19:54:49 2007 UTC vs.
Revision 1.30 by root, Mon May 28 21:07:07 2007 UTC

1# Copyright (C) 2007 Marc Alexander Lehmann
2# Copyright (C) 2001 Mark Wedel & Crossfire Development Team
3# Copyright (C) 1992 Frank Tore Johansen
4# 1#
2# This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game.
3#
4# Copyright (©) 2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team
5# Copyright (©) 2001,2007 Mark Wedel & Crossfire Development Team
6# Copyright (©) 1992,2007 Frank Tore Johansen
7#
5# This program is free software; you can redistribute it and/or modify 8# Crossfire TRT is free software; you can redistribute it and/or modify it
6# it under the terms of the GNU General Public License as published by 9# under the terms of the GNU General Public License as published by the Free
7# the Free Software Foundation; either version 2 of the License, or 10# Software Foundation; either version 2 of the License, or (at your option)
8# (at your option) any later version. 11# any later version.
12#
13# This program is distributed in the hope that it will be useful, but
14# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16# for more details.
17#
18# You should have received a copy of the GNU General Public License along
19# with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51
20# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21#
22# The authors can be reached via e-mail to <crossfire@schmorp.de>
9# 23#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18#
19# The authors can be reached via e-mail to crossfire@schmorp.de
20 24
21pkgstatedir = @pkgstatedir@ 25pkgstatedir = @pkgstatedir@
22pkgconfdir = @pkgconfdir@ 26pkgconfdir = @pkgconfdir@
23 27
24dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl
25dist_pkgdata_DATA = artifacts def_help formulae messages races \ 28nobase_dist_pkgdata_DATA = artifacts def_help formulae races \
26 animations archetypes bmaps bmaps.paths crossfire.0 \
27 faces attackmess image_info smooth materials cf.pm jeweler.yaml 29 attackmess materials cf.pm jeweler.yaml
28 30
29CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules config 31pmdir = $(pkgdatadir)/cf
30VAR_FILES = highscore banish_file bookarch temp.maps clockdata 32dist_pm_DATA = cf/pod.pm
31EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld
32 33
33admdir=$(pkgdatadir)/adm 34admdir = $(pkgdatadir)/adm
34dist_adm_SCRIPTS = \
35 adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl \ 35dist_adm_DATA = adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl adm/collect_images.pl
36 adm/collect_images.pl
37 36
38MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in 37CONF_FILES = settings motd dm_file forbid exp_table news rules config
38VAR_FILES = highscore bookarch temp.maps
39EXTRA_DIST = README $(CONF_FILES)
40
41MAINTAINERCLEANFILES = Makefile.in
39 42
40PERL = @PERL@ 43PERL = @PERL@
41 44
42crossfire.0: bmaps.paths 45install-data-local: jeweler.yaml
43 $(PERL) $(srcdir)/adm/collect_images.pl -png
44
45.collect-stamp:
46 touch .collect-stamp
47
48collect:
49 $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch
50 $(PERL) $(srcdir)/adm/collect_images.pl -png
51
52archonly:
53 $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch ARCHONLY
54
55archetypes: .collect-stamp
56 make collect
57
58faces: .collect-stamp
59 make collect
60
61animations: .collect-stamp
62 make collect
63
64bmaps.paths bmaps: .collect-stamp
65 make collect
66
67smooth: .collect-stamp
68 make collect
69
70install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl jeweler.yaml
71 @$(NORMAL_INSTALL) 46 @$(NORMAL_INSTALL)
47 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/maps
72 $(mkinstalldirs) $(DESTDIR)$(pkgconfdir) 48 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgconfdir)
73 for i in $(CONF_FILES); do \ 49 for i in $(CONF_FILES); do \
74 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ 50 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \
75 echo "Installing $$i"; \ 51 echo "Installing $$i"; \
76 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ 52 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \
77 fi \ 53 fi \
78 done 54 done
79
80 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir) 55 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)
81 for i in $(VAR_FILES) ; do \ 56 for i in $(VAR_FILES) ; do \
82 touch $(DESTDIR)$(pkgstatedir)/$$i ; \ 57 touch $(DESTDIR)$(pkgstatedir)/$$i ; \
83 done 58 done
84
85 @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 \
86 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ 60 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \
87 echo "Creating directory $(pkgstatedir)/$$i"; \ 61 echo "Creating directory $(pkgstatedir)/$$i"; \
88 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir)/$$i; \ 62 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \
89 fi; \ 63 fi; \
90 done 64 done
91# Special case above because the name we install to is different
92# than the name of the file
93 if [ ! -d $(DESTDIR)$(pkgdatadir)/$$i ]; then \
94 echo "Creating directory $(pkgdatadir)/$$i"; \
95 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$$i; \
96 fi; \
97 $(INSTALL_DATA) $(srcdir)/treasures.bld $(DESTDIR)$(pkgdatadir)/treasures
98
99 65
100# Uninstall unchanged config/var files so make distcheck is happy 66# Uninstall unchanged config/var files so make distcheck is happy
101# but leave changed file, so no configuration/game state is lost 67# but leave changed file, so no configuration/game state is lost
102uninstall-local: 68uninstall-local:
103 -for i in $(CONF_FILES); do \ 69 -for i in $(CONF_FILES); do \
116 rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ 82 rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \
117 fi ; \ 83 fi ; \
118 done 84 done
119 85
120 86
121# This block makes the archive of the arch directory.
122archive::
123 $(AMTAR) -cvh --exclude=dev --exclude=CVS -f $(PACKAGE)-$(VERSION)-arch.tar arch
124 $(GZIP) -cv9 $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.gz
125 $(BZIP) -cv --repetitive-best $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.bz2
126 $(RM) $(PACKAGE)-$(VERSION)-arch.tar
127
128libArch:
129 tar cvf A`perl puredate.pl`.tar arch treasures
130 gzip A`perl puredate.pl`.tar

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines