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 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 | # |
5 | # This program is free software; you can redistribute it and/or modify |
8 | # Deliantra is free software: you can redistribute it and/or modify |
6 | # it under the terms of the GNU General Public License as published by |
9 | # it under the terms of the GNU General Public License as published by |
7 | # the Free Software Foundation; either version 2 of the License, or |
10 | # the Free Software Foundation, either version 3 of the License, or |
8 | # (at your option) any later version. |
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> |
9 | # |
22 | # |
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 | |
23 | |
21 | pkgstatedir = @pkgstatedir@ |
24 | pkgstatedir = @pkgstatedir@ |
22 | pkgconfdir = @pkgconfdir@ |
25 | pkgconfdir = @pkgconfdir@ |
23 | |
26 | |
24 | dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl |
|
|
25 | nobase_dist_pkgdata_DATA = artifacts def_help formulae messages races \ |
27 | nobase_dist_pkgdata_DATA = artifacts formulae races \ |
26 | animations archetypes bmaps bmaps.paths crossfire.0 \ |
28 | attackmess materials cf.pm |
27 | faces attackmess image_info smooth materials cf.pm jeweler.yaml |
|
|
28 | |
29 | |
29 | pmdir = $(pkgdatadir)/cf |
30 | pmdir = $(pkgdatadir)/cf |
30 | dist_pm_DATA = cf/pod.pm |
31 | dist_pm_DATA = cf/pod.pm cf/match.pm cf/mapscript.pm |
31 | |
32 | |
32 | admdir = $(pkgdatadir)/adm |
33 | admdir = $(pkgdatadir)/adm |
33 | dist_adm_DATA = adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl adm/collect_images.pl |
34 | dist_adm_DATA = adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl adm/collect_images.pl |
34 | |
35 | |
35 | CONF_FILES = settings motd dm_file forbid exp_table news rules config |
36 | CONF_FILES = settings motd dm_file exp_table news rules config |
36 | VAR_FILES = highscore bookarch temp.maps clockdata |
37 | VAR_FILES = highscore bookarch temp.maps |
37 | EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld |
38 | EXTRA_DIST = README $(CONF_FILES) |
38 | |
39 | |
39 | MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in |
40 | MAINTAINERCLEANFILES = Makefile.in |
40 | |
41 | |
41 | PERL = @PERL@ |
42 | PERL = @PERL@ |
42 | |
43 | |
43 | crossfire.0: bmaps.paths |
44 | install-data-local: |
44 | $(PERL) $(srcdir)/adm/collect_images.pl -png |
|
|
45 | |
|
|
46 | .collect-stamp: |
|
|
47 | touch .collect-stamp |
|
|
48 | |
|
|
49 | collect: |
|
|
50 | $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch |
|
|
51 | $(PERL) $(srcdir)/adm/collect_images.pl -png |
|
|
52 | |
|
|
53 | archonly: |
|
|
54 | $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch ARCHONLY |
|
|
55 | |
|
|
56 | archetypes: .collect-stamp |
|
|
57 | make collect |
|
|
58 | |
|
|
59 | faces: .collect-stamp |
|
|
60 | make collect |
|
|
61 | |
|
|
62 | animations: .collect-stamp |
|
|
63 | make collect |
|
|
64 | |
|
|
65 | bmaps.paths bmaps: .collect-stamp |
|
|
66 | make collect |
|
|
67 | |
|
|
68 | smooth: .collect-stamp |
|
|
69 | make collect |
|
|
70 | |
|
|
71 | install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl jeweler.yaml |
|
|
72 | @$(NORMAL_INSTALL) |
45 | @$(NORMAL_INSTALL) |
|
|
46 | $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/maps |
|
|
47 | $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgconfdir) |
73 | for i in $(CONF_FILES); do \ |
48 | for i in $(CONF_FILES); do \ |
74 | if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ |
49 | if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ |
75 | echo "Installing $$i"; \ |
50 | echo "Installing $$i"; \ |
76 | $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ |
51 | $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ |
77 | fi \ |
52 | fi \ |
… | |
… | |
84 | if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ |
59 | if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ |
85 | echo "Creating directory $(pkgstatedir)/$$i"; \ |
60 | echo "Creating directory $(pkgstatedir)/$$i"; \ |
86 | $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \ |
61 | $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \ |
87 | fi; \ |
62 | fi; \ |
88 | done |
63 | done |
89 | $(INSTALL_DATA) $(srcdir)/treasures.bld $(DESTDIR)$(pkgdatadir)/treasures |
|
|
90 | |
64 | |
91 | # Uninstall unchanged config/var files so make distcheck is happy |
65 | # Uninstall unchanged config/var files so make distcheck is happy |
92 | # but leave changed file, so no configuration/game state is lost |
66 | # but leave changed file, so no configuration/game state is lost |
93 | uninstall-local: |
67 | uninstall-local: |
94 | -for i in $(CONF_FILES); do \ |
68 | -for i in $(CONF_FILES); do \ |
… | |
… | |
107 | rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ |
81 | rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ |
108 | fi ; \ |
82 | fi ; \ |
109 | done |
83 | done |
110 | |
84 | |
111 | |
85 | |
112 | # This block makes the archive of the arch directory. |
|
|
113 | archive:: |
|
|
114 | $(AMTAR) -cvh --exclude=dev --exclude=CVS -f $(PACKAGE)-$(VERSION)-arch.tar arch |
|
|
115 | $(GZIP) -cv9 $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.gz |
|
|
116 | $(BZIP) -cv --repetitive-best $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.bz2 |
|
|
117 | $(RM) $(PACKAGE)-$(VERSION)-arch.tar |
|
|
118 | |
|
|
119 | libArch: |
|
|
120 | tar cvf A`perl puredate.pl`.tar arch treasures |
|
|
121 | gzip A`perl puredate.pl`.tar |
|
|