# # This file is part of Deliantra, the Roguelike Realtime MMORPG. # # Copyright (©) 2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team # Copyright (©) 2001 Mark Wedel & Crossfire Development Team # Copyright (©) 1992 Frank Tore Johansen # # Deliantra is free software: you can redistribute it and/or modify it under # the terms of the Affero GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the Affero GNU General Public License # and the GNU General Public License along with this program. If not, see # . # # The authors can be reached via e-mail to # pkgstatedir = @pkgstatedir@ pkgconfdir = @pkgconfdir@ nobase_dist_pkgdata_DATA = artifacts formulae races \ attackmess materials cf.pm pmdir = $(pkgdatadir)/cf dist_pm_DATA = cf/pod.pm cf/match.pm cf/mapscript.pm admdir = $(pkgdatadir)/adm dist_adm_DATA = adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl adm/collect_images.pl CONF_FILES = settings dm_file exp_table config VAR_FILES = highscore bookarch temp.maps EXTRA_DIST = README $(CONF_FILES) MAINTAINERCLEANFILES = Makefile.in PERL = @PERL@ install-data-local: @$(NORMAL_INSTALL) $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/maps $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgconfdir) for i in $(CONF_FILES); do \ if [ ! -f $(DESTDIR)$(pkgconfdir)/$$i ]; then \ echo "Installing $$i"; \ $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgconfdir); \ fi \ done $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir) for i in $(VAR_FILES) ; do \ touch $(DESTDIR)$(pkgstatedir)/$$i ; \ done @for i in datafiles players unique-items template-maps maps random db tmp; do \ if [ ! -d $(DESTDIR)$(pkgstatedir)/$$i ]; then \ echo "Creating directory $(pkgstatedir)/$$i"; \ $(mkinstalldirs) -m 755 $(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 ! [ -s "$(DESTDIR)$(pkgstatedir)/$$i" ] ; then \ rm -f $(DESTDIR)$(pkgstatedir)/$$i ; \ fi ; \ done