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.28 by root, Sat May 26 15:44:06 2007 UTC

1# 1# Copyright (C) 2007 Marc Alexander Lehmann
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 2# Copyright (C) 2001 Mark Wedel & Crossfire Development Team
8# Copyright (C) 1992 Frank Tore Johansen 3# Copyright (C) 1992 Frank Tore Johansen
9# 4#
10# This program is free software; you can redistribute it and/or modify 5# 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 6# it under the terms of the GNU General Public License as published by
24# The authors can be reached via e-mail to crossfire@schmorp.de 19# The authors can be reached via e-mail to crossfire@schmorp.de
25 20
26pkgstatedir = @pkgstatedir@ 21pkgstatedir = @pkgstatedir@
27pkgconfdir = @pkgconfdir@ 22pkgconfdir = @pkgconfdir@
28 23
29dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl
30dist_pkgdata_DATA = artifacts def_help formulae messages races \ 24nobase_dist_pkgdata_DATA = artifacts def_help formulae races \
31 animations archetypes bmaps bmaps.paths crossfire.0 \
32 faces attackmess image_info smooth materials cf.pm jeweler.yaml \ 25 attackmess materials cf.pm jeweler.yaml
33 world.pst
34 26
35CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules config 27pmdir = $(pkgdatadir)/cf
36VAR_FILES = highscore banish_file bookarch temp.maps clockdata 28dist_pm_DATA = cf/pod.pm
37EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld world.png
38 29
39wizhelpdir=$(pkgdatadir)/wizhelp 30admdir = $(pkgdatadir)/adm
40dist_wizhelp_DATA = wizhelp/abil wizhelp/addexp \ 31dist_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 32
66admdir=$(pkgdatadir)/adm 33CONF_FILES = settings motd dm_file forbid exp_table news rules config
67dist_adm_SCRIPTS = \ 34VAR_FILES = highscore bookarch temp.maps
68 adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl \ 35EXTRA_DIST = README $(CONF_FILES)
69 adm/collect_images.pl
70 36
71MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in 37MAINTAINERCLEANFILES = Makefile.in
72 38
73PERL = @PERL@ 39PERL = @PERL@
74 40
75crossfire.0: bmaps.paths 41install-data-local: jeweler.yaml
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) 42 @$(NORMAL_INSTALL)
108 $(mkinstalldirs) $(DESTDIR)$(pkgconfdir) 43 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgconfdir)
109 for i in $(CONF_FILES); do \ 44 for i in $(CONF_FILES); do \
110 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ 45 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \
111 echo "Installing $$i"; \ 46 echo "Installing $$i"; \
112 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ 47 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \
113 fi \ 48 fi \
114 done 49 done
115
116 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir) 50 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)
117 for i in $(VAR_FILES) ; do \ 51 for i in $(VAR_FILES) ; do \
118 touch $(DESTDIR)$(pkgstatedir)/$$i ; \ 52 touch $(DESTDIR)$(pkgstatedir)/$$i ; \
119 done 53 done
120
121 @for i in datafiles players unique-items template-maps maps; do \ 54 @for i in datafiles players unique-items template-maps maps random db tmp; do \
122 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ 55 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \
123 echo "Creating directory $(pkgstatedir)/$$i"; \ 56 echo "Creating directory $(pkgstatedir)/$$i"; \
124 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir)/$$i; \ 57 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \
125 fi; \ 58 fi; \
126 done 59 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 60
136# Uninstall unchanged config/var files so make distcheck is happy 61# Uninstall unchanged config/var files so make distcheck is happy
137# but leave changed file, so no configuration/game state is lost 62# but leave changed file, so no configuration/game state is lost
138uninstall-local: 63uninstall-local:
139 -for i in $(CONF_FILES); do \ 64 -for i in $(CONF_FILES); do \
152 rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ 77 rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \
153 fi ; \ 78 fi ; \
154 done 79 done
155 80
156 81
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