ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/Makefile.am
Revision: 1.20
Committed: Sat Jan 20 22:09:52 2007 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.19: +6 -2 lines
Log Message:
- move util/world.png to server/lib/
  (should go to maps/world.png, but I will not fiddle around with that now)
- compile worldmap to world.pst and install it.
- rename FLAG_NO_SAVE to FLAG_NO_MAP_SAVE
- define FABS to fabs, as intended
- fix all(?) the FABS(int) calls

File Contents

# User Rev Content
1 root 1.1 #
2     # Makefile for crossfire 0.95.0 and beyond
3     #
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 root 1.17 # The authors can be reached via e-mail to crossfire@schmorp.de
25 root 1.1
26     pkgstatedir = @pkgstatedir@
27     pkgconfdir = @pkgconfdir@
28    
29     dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl
30 pippijn 1.9 dist_pkgdata_DATA = artifacts def_help formulae messages races \
31 root 1.1 animations archetypes bmaps bmaps.paths crossfire.0 \
32 root 1.20 faces attackmess image_info smooth materials cf.pm jeweler.yaml \
33     world.pst
34 root 1.1
35 pippijn 1.19 CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules config
36 root 1.1 VAR_FILES = highscore banish_file bookarch temp.maps clockdata
37 root 1.20 EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld world.png
38 root 1.1
39     wizhelpdir=$(pkgdatadir)/wizhelp
40     dist_wizhelp_DATA = wizhelp/abil wizhelp/addexp \
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 elmex 1.3 wizhelp/goto wizhelp/hide wizhelp/insert_into \
48     wizhelp/invisible \
49 root 1.1 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 elmex 1.3 wizhelp/spellreset wizhelp/ssdumptable wizhelp/stats \
60 root 1.1 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    
66     admdir=$(pkgdatadir)/adm
67     dist_adm_SCRIPTS = \
68     adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl \
69     adm/collect_images.pl
70    
71 pippijn 1.10 MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in
72 root 1.1
73     PERL = @PERL@
74    
75     crossfire.0: bmaps.paths
76     $(PERL) $(srcdir)/adm/collect_images.pl -png
77    
78     .collect-stamp:
79     touch .collect-stamp
80    
81     collect:
82     $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch
83     $(PERL) $(srcdir)/adm/collect_images.pl -png
84    
85     archonly:
86     $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch ARCHONLY
87    
88     archetypes: .collect-stamp
89     make collect
90    
91     faces: .collect-stamp
92     make collect
93    
94     animations: .collect-stamp
95     make collect
96    
97     bmaps.paths bmaps: .collect-stamp
98     make collect
99    
100 pippijn 1.5 smooth: .collect-stamp
101     make collect
102    
103 root 1.20 world.pst: world.png compile_worldmap
104     $(PERL) compile_worldmap
105    
106 elmex 1.14 install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl jeweler.yaml
107 root 1.1 @$(NORMAL_INSTALL)
108     $(mkinstalldirs) $(DESTDIR)$(pkgconfdir)
109     for i in $(CONF_FILES); do \
110     if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \
111     echo "Installing $$i"; \
112     $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \
113     fi \
114     done
115    
116     $(mkinstalldirs) $(DESTDIR)$(pkgstatedir)
117     for i in $(VAR_FILES) ; do \
118     touch $(DESTDIR)$(pkgstatedir)/$$i ; \
119     done
120    
121     @for i in datafiles players unique-items template-maps maps; do \
122     if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \
123     echo "Creating directory $(pkgstatedir)/$$i"; \
124     $(mkinstalldirs) $(DESTDIR)$(pkgstatedir)/$$i; \
125     fi; \
126     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    
136     # Uninstall unchanged config/var files so make distcheck is happy
137     # but leave changed file, so no configuration/game state is lost
138     uninstall-local:
139     -for i in $(CONF_FILES); do \
140     if test ! -f $(DESTDIR)$(pkgconfdir)/$$i ; then \
141     continue ; \
142     fi ; \
143     if diff -q $(srcdir)/$$i $(DESTDIR)$(pkgconfdir)/$$i ; then \
144     rm -f $(DESTDIR)$(pkgconfdir)/$$i ; \
145     fi ; \
146     done
147     -for i in $(VAR_FILES) ; do \
148     if test ! -f $(DESTDIR)$(pkgstatedir)/$$i ; then \
149     continue ;\
150     fi ; \
151 root 1.18 if ! [ -s "$(DESTDIR)$(pkgstatedir)/$$i" ] ; then \
152 root 1.1 rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \
153     fi ; \
154     done
155    
156    
157     # This block makes the archive of the arch directory.
158     archive::
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    
164     libArch:
165     tar cvf A`perl puredate.pl`.tar arch treasures
166     gzip A`perl puredate.pl`.tar