1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
pkgstatedir = @pkgstatedir@
pkgconfdir = @pkgconfdir@
dist_noinst_SCRIPTS = collect util.pl
dist_pkgdata_DATA = \
arch/artifacts \
arch/attackmess \
arch/formulae \
arch/image_info \
arch/materials \
arch/messages \
arch/races \
def_help \
animations archetypes bmaps.paths crossfire.0 crossfire.1 faces smooth treasures
CONF_FILES = \
config/ban_file \
config/dm_file \
config/exp_table \
config/forbid \
config/metaserver2 \
config/motd \
config/news \
config/rules \
config/settings \
config/stat_bonus
VAR_FILES = highscore banish_file bookarch temp.maps clockdata
EXTRA_DIST = README .collect-stamp $(CONF_FILES)
helpdir=$(pkgdatadir)/help
dist_help_DATA = help/*.en help/*.fr
wizhelpdir=$(pkgdatadir)/wizhelp
dist_wizhelp_DATA = wizhelp/*.en wizhelp/*.fr
admdir=$(pkgdatadir)/adm
dist_adm_SCRIPTS = adm/archsearch.pl adm/collect_images.pl
i18ndir=$(pkgdatadir)/i18n
dist_i18n_DATA = i18n/messages.en \
i18n/messages.fr
MAINTAINERCLEANFILES = archetypes faces .collect-stamp \
animations smooth treasures bmaps.paths crossfire.0 crossfire.1
PERL = @PERL@
crossfire.0: bmaps.paths
$(PERL) $(srcdir)/adm/collect_images.pl -src $(srcdir) -png
.collect-stamp:
touch .collect-stamp
do-collect:
$(PERL) -I$(srcdir) collect $(builddir)/arch
$(PERL) $(srcdir)/adm/collect_images.pl -src $(srcdir) -png
archonly:
$(PERL) -I$(srcdir) collect $(builddir)/arch ARCHONLY
archetypes faces animations bmaps.paths smooth: .collect-stamp
touch .collect-stamp
$(MAKE) do-collect
install-data-local: archetypes crossfire.0 faces animations smooth collect util.pl
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(pkgconfdir)
for i in $(CONF_FILES); do \
if [ ! -f $(DESTDIR)$(pkgconfdir)/`basename $$i` ]; then \
echo "Installing $$i"; \
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \
fi \
done
$(mkinstalldirs) $(DESTDIR)$(pkgstatedir)
for i in $(VAR_FILES) ; do \
touch $(DESTDIR)$(pkgstatedir)/$$i ; \
done
@for i in account datafiles players unique-items template-maps maps; do \
if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \
echo "Creating directory $(pkgstatedir)/$$i"; \
$(mkinstalldirs) $(DESTDIR)$(pkgstatedir)/$$i; \
fi; \
done
# Uninstall unchanged config/var files so make distcheck is happy
# but leave changed file, so no configuration/game state is lost
uninstall-local:
-for i in $(CONF_FILES); do \
if test ! -f $(DESTDIR)$(pkgconfdir)/$$i ; then \
continue ; \
fi ; \
if diff -q $(srcdir)/$$i $(DESTDIR)$(pkgconfdir)/$$i ; then \
rm -f $(DESTDIR)$(pkgconfdir)/$$i ; \
fi ; \
done
-for i in $(VAR_FILES) ; do \
if test ! -f $(DESTDIR)$(pkgstatedir)/$$i ; then \
continue ;\
fi ; \
if test `wc -c $(DESTDIR)$(pkgstatedir)/$$i|$(AWK) '{ print $$1 }'` -eq "0" ; then \
rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \
fi ; \
done
# This block makes the archive of the arch directory.
archive::
$(AMTAR) -ch --exclude=dev --exclude=.svn -f ${PACKAGE}-arch-${VERSION}.tar arch
libArch:
tar cvf A`perl puredate.pl`.tar arch treasures
gzip A`perl puredate.pl`.tar
|