… | |
… | |
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 | dist_pkgdata_DATA = artifacts def_help formulae messages races \ |
25 | nobase_dist_pkgdata_DATA = artifacts def_help formulae messages races \ |
26 | animations archetypes bmaps bmaps.paths crossfire.0 \ |
26 | animations archetypes bmaps bmaps.paths crossfire.0 \ |
27 | faces attackmess image_info smooth materials cf.pm jeweler.yaml |
27 | faces attackmess image_info smooth materials cf.pm jeweler.yaml |
28 | |
28 | |
|
|
29 | pmdir = $(pkgdatadir)/cf |
|
|
30 | dist_pm_DATA = cf/pod.pm |
|
|
31 | |
|
|
32 | 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 | |
29 | CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules config |
35 | CONF_FILES = settings motd dm_file forbid exp_table news rules config |
30 | VAR_FILES = highscore banish_file bookarch temp.maps clockdata |
36 | VAR_FILES = highscore bookarch temp.maps clockdata |
31 | EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld |
37 | EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld |
32 | |
|
|
33 | admdir=$(pkgdatadir)/adm |
|
|
34 | dist_adm_SCRIPTS = \ |
|
|
35 | adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl \ |
|
|
36 | adm/collect_images.pl |
|
|
37 | |
38 | |
38 | MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in |
39 | MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in |
39 | |
40 | |
40 | PERL = @PERL@ |
41 | PERL = @PERL@ |
41 | |
42 | |
… | |
… | |
67 | smooth: .collect-stamp |
68 | smooth: .collect-stamp |
68 | make collect |
69 | make collect |
69 | |
70 | |
70 | install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl jeweler.yaml |
71 | install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl jeweler.yaml |
71 | @$(NORMAL_INSTALL) |
72 | @$(NORMAL_INSTALL) |
72 | $(mkinstalldirs) $(DESTDIR)$(pkgconfdir) |
|
|
73 | for i in $(CONF_FILES); do \ |
73 | for i in $(CONF_FILES); do \ |
74 | if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ |
74 | if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ |
75 | echo "Installing $$i"; \ |
75 | echo "Installing $$i"; \ |
76 | $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ |
76 | $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ |
77 | fi \ |
77 | fi \ |
78 | done |
78 | done |
79 | |
|
|
80 | $(mkinstalldirs) $(DESTDIR)$(pkgstatedir) |
79 | $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir) |
81 | for i in $(VAR_FILES) ; do \ |
80 | for i in $(VAR_FILES) ; do \ |
82 | touch $(DESTDIR)$(pkgstatedir)/$$i ; \ |
81 | touch $(DESTDIR)$(pkgstatedir)/$$i ; \ |
83 | done |
82 | done |
84 | |
|
|
85 | @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 \ |
86 | if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ |
84 | if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ |
87 | echo "Creating directory $(pkgstatedir)/$$i"; \ |
85 | echo "Creating directory $(pkgstatedir)/$$i"; \ |
88 | $(mkinstalldirs) $(DESTDIR)$(pkgstatedir)/$$i; \ |
86 | $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \ |
89 | fi; \ |
87 | fi; \ |
90 | done |
88 | done |
91 | # Special case above because the name we install to is different |
|
|
92 | # than the name of the file |
|
|
93 | if [ ! -d $(DESTDIR)$(pkgdatadir)/$$i ]; then \ |
|
|
94 | echo "Creating directory $(pkgdatadir)/$$i"; \ |
|
|
95 | $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$$i; \ |
|
|
96 | fi; \ |
|
|
97 | $(INSTALL_DATA) $(srcdir)/treasures.bld $(DESTDIR)$(pkgdatadir)/treasures |
89 | $(INSTALL_DATA) $(srcdir)/treasures.bld $(DESTDIR)$(pkgdatadir)/treasures |
98 | |
|
|
99 | |
90 | |
100 | # Uninstall unchanged config/var files so make distcheck is happy |
91 | # Uninstall unchanged config/var files so make distcheck is happy |
101 | # but leave changed file, so no configuration/game state is lost |
92 | # but leave changed file, so no configuration/game state is lost |
102 | uninstall-local: |
93 | uninstall-local: |
103 | -for i in $(CONF_FILES); do \ |
94 | -for i in $(CONF_FILES); do \ |