… | |
… | |
20 | |
20 | |
21 | pkgstatedir = @pkgstatedir@ |
21 | pkgstatedir = @pkgstatedir@ |
22 | pkgconfdir = @pkgconfdir@ |
22 | pkgconfdir = @pkgconfdir@ |
23 | |
23 | |
24 | dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl |
24 | dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl |
25 | nobase_dist_pkgdata_DATA = artifacts def_help formulae messages races \ |
25 | nobase_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 |
26 | attackmess materials cf.pm jeweler.yaml |
28 | |
27 | |
29 | pmdir = $(pkgdatadir)/cf |
28 | pmdir = $(pkgdatadir)/cf |
30 | dist_pm_DATA = cf/pod.pm |
29 | dist_pm_DATA = cf/pod.pm |
31 | |
30 | |
32 | admdir = $(pkgdatadir)/adm |
31 | admdir = $(pkgdatadir)/adm |
33 | dist_adm_DATA = adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl adm/collect_images.pl |
32 | dist_adm_DATA = adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl adm/collect_images.pl |
34 | |
33 | |
35 | CONF_FILES = settings motd dm_file forbid exp_table news rules config |
34 | CONF_FILES = settings motd dm_file forbid exp_table news rules config |
36 | VAR_FILES = highscore bookarch temp.maps clockdata |
35 | VAR_FILES = highscore bookarch temp.maps |
37 | EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld |
36 | EXTRA_DIST = README .collect-stamp $(CONF_FILES) |
38 | |
37 | |
39 | MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in |
38 | MAINTAINERCLEANFILES = .collect-stamp Makefile.in |
40 | |
39 | |
41 | PERL = @PERL@ |
40 | PERL = @PERL@ |
42 | |
41 | |
43 | crossfire.0: bmaps.paths |
42 | install-data-local: jeweler.yaml |
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) |
43 | @$(NORMAL_INSTALL) |
73 | for i in $(CONF_FILES); do \ |
44 | for i in $(CONF_FILES); do \ |
74 | if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ |
45 | if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ |
75 | echo "Installing $$i"; \ |
46 | echo "Installing $$i"; \ |
76 | $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ |
47 | $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ |
… | |
… | |
84 | if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ |
55 | if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ |
85 | echo "Creating directory $(pkgstatedir)/$$i"; \ |
56 | echo "Creating directory $(pkgstatedir)/$$i"; \ |
86 | $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \ |
57 | $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \ |
87 | fi; \ |
58 | fi; \ |
88 | done |
59 | done |
89 | $(INSTALL_DATA) $(srcdir)/treasures.bld $(DESTDIR)$(pkgdatadir)/treasures |
|
|
90 | |
60 | |
91 | # Uninstall unchanged config/var files so make distcheck is happy |
61 | # Uninstall unchanged config/var files so make distcheck is happy |
92 | # but leave changed file, so no configuration/game state is lost |
62 | # but leave changed file, so no configuration/game state is lost |
93 | uninstall-local: |
63 | uninstall-local: |
94 | -for i in $(CONF_FILES); do \ |
64 | -for i in $(CONF_FILES); do \ |
… | |
… | |
107 | rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ |
77 | rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ |
108 | fi ; \ |
78 | fi ; \ |
109 | done |
79 | done |
110 | |
80 | |
111 | |
81 | |
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 |
|
|