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.24 by root, Tue Mar 6 19:02:35 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
25 20
26pkgstatedir = @pkgstatedir@ 21pkgstatedir = @pkgstatedir@
27pkgconfdir = @pkgconfdir@ 22pkgconfdir = @pkgconfdir@
28 23
29dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl 24dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl
30dist_pkgdata_DATA = artifacts def_help formulae messages races \ 25nobase_dist_pkgdata_DATA = artifacts def_help formulae messages races \
31 animations archetypes bmaps bmaps.paths crossfire.0 \ 26 animations archetypes bmaps bmaps.paths crossfire.0 \
32 faces attackmess image_info smooth materials cf.pm jeweler.yaml \ 27 faces attackmess image_info smooth materials cf.pm jeweler.yaml
33 world.pst
34 28
35CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules config 29pmdir = $(pkgdatadir)/cf
36VAR_FILES = highscore banish_file bookarch temp.maps clockdata 30dist_pm_DATA = cf/pod.pm
37EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld world.png
38 31
39wizhelpdir=$(pkgdatadir)/wizhelp 32admdir = $(pkgdatadir)/adm
40dist_wizhelp_DATA = wizhelp/abil wizhelp/addexp \ 33dist_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 34
66admdir=$(pkgdatadir)/adm 35CONF_FILES = settings motd dm_file forbid exp_table news rules config
67dist_adm_SCRIPTS = \ 36VAR_FILES = highscore bookarch temp.maps clockdata
68 adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl \ 37EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld
69 adm/collect_images.pl
70 38
71MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in 39MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in
72 40
73PERL = @PERL@ 41PERL = @PERL@
74 42
98 make collect 66 make collect
99 67
100smooth: .collect-stamp 68smooth: .collect-stamp
101 make collect 69 make collect
102 70
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 71install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl jeweler.yaml
107 @$(NORMAL_INSTALL) 72 @$(NORMAL_INSTALL)
108 $(mkinstalldirs) $(DESTDIR)$(pkgconfdir)
109 for i in $(CONF_FILES); do \ 73 for i in $(CONF_FILES); do \
110 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ 74 if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \
111 echo "Installing $$i"; \ 75 echo "Installing $$i"; \
112 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ 76 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \
113 fi \ 77 fi \
114 done 78 done
115
116 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir) 79 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)
117 for i in $(VAR_FILES) ; do \ 80 for i in $(VAR_FILES) ; do \
118 touch $(DESTDIR)$(pkgstatedir)/$$i ; \ 81 touch $(DESTDIR)$(pkgstatedir)/$$i ; \
119 done 82 done
120
121 @for i in datafiles players unique-items template-maps maps; do \ 83 @for i in datafiles players unique-items template-maps maps random db tmp; do \
122 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ 84 if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \
123 echo "Creating directory $(pkgstatedir)/$$i"; \ 85 echo "Creating directory $(pkgstatedir)/$$i"; \
124 $(mkinstalldirs) $(DESTDIR)$(pkgstatedir)/$$i; \ 86 $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \
125 fi; \ 87 fi; \
126 done 88 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 89 $(INSTALL_DATA) $(srcdir)/treasures.bld $(DESTDIR)$(pkgdatadir)/treasures
134
135 90
136# Uninstall unchanged config/var files so make distcheck is happy 91# Uninstall unchanged config/var files so make distcheck is happy
137# but leave changed file, so no configuration/game state is lost 92# but leave changed file, so no configuration/game state is lost
138uninstall-local: 93uninstall-local:
139 -for i in $(CONF_FILES); do \ 94 -for i in $(CONF_FILES); do \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines