--- deliantra/server/lib/Makefile.am 2007/02/02 01:15:40 1.22 +++ deliantra/server/lib/Makefile.am 2018/11/17 23:40:02 1.48 @@ -1,106 +1,67 @@ # -# Makefile for crossfire 0.95.0 and beyond +# This file is part of Deliantra, the Roguelike Realtime MMORPG. # -# This file will eventually be replaced by a configure script. But for -# now, this simple makefile should do the job. +# Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team +# Copyright (©) 2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 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 +# . # -# Copyright (C) 2001 Mark Wedel & Crossfire Development Team -# Copyright (C) 1992 Frank Tore Johansen +# The authors can be reached via e-mail to # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 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 GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# The authors can be reached via e-mail to crossfire@schmorp.de pkgstatedir = @pkgstatedir@ pkgconfdir = @pkgconfdir@ -dist_noinst_SCRIPTS = collect.pl util.pl checkarch.pl -dist_pkgdata_DATA = artifacts def_help formulae messages races \ - animations archetypes bmaps bmaps.paths crossfire.0 \ - faces attackmess image_info smooth materials cf.pm jeweler.yaml - -CONF_FILES = settings motd dm_file forbid ban_file exp_table news rules config -VAR_FILES = highscore banish_file bookarch temp.maps clockdata -EXTRA_DIST = README .collect-stamp $(CONF_FILES) treasures.bld world.png - -admdir=$(pkgdatadir)/adm -dist_adm_SCRIPTS = \ - adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl \ - adm/collect_images.pl - -MAINTAINERCLEANFILES = animations archetypes bmaps bmaps.paths crossfire.0 faces treasures.bld smooth .collect-stamp Makefile.in - -PERL = @PERL@ - -crossfire.0: bmaps.paths - $(PERL) $(srcdir)/adm/collect_images.pl -png +nobase_dist_pkgdata_DATA = cf.pm -.collect-stamp: - touch .collect-stamp +pmdir = $(pkgdatadir)/cf +dist_pm_DATA = cf/pod.pm cf/match.pm cf/mapscript.pm cf/incloader.pm -collect: - $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch - $(PERL) $(srcdir)/adm/collect_images.pl -png +admdir = $(pkgdatadir)/adm +dist_adm_DATA = adm/map_info adm/map_expand.pl adm/mapslitter.pl adm/archsearch.pl adm/collect_images.pl -archonly: - $(PERL) -I$(srcdir) collect.pl $(srcdir)/arch ARCHONLY +CONF_FILES = settings dm_file config +VAR_FILES = highscore bookarch temp.maps +EXTRA_DIST = README $(CONF_FILES) -archetypes: .collect-stamp - make collect +MAINTAINERCLEANFILES = Makefile.in -faces: .collect-stamp - make collect - -animations: .collect-stamp - make collect - -bmaps.paths bmaps: .collect-stamp - make collect - -smooth: .collect-stamp - make collect +PERL = @PERL@ -install-data-local: archetypes crossfire.0 faces animations collect.pl util.pl jeweler.yaml +install-data-local: @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(pkgconfdir) + $(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) $(DESTDIR)$(pkgstatedir) + $(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; do \ + @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) $(DESTDIR)$(pkgstatedir)/$$i; \ + $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgstatedir)/$$i; \ fi; \ done -# Special case above because the name we install to is different -# than the name of the file - if [ ! -d $(DESTDIR)$(pkgdatadir)/$$i ]; then \ - echo "Creating directory $(pkgdatadir)/$$i"; \ - $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$$i; \ - fi; \ - $(INSTALL_DATA) $(srcdir)/treasures.bld $(DESTDIR)$(pkgdatadir)/treasures - # Uninstall unchanged config/var files so make distcheck is happy # but leave changed file, so no configuration/game state is lost @@ -123,13 +84,3 @@ done -# This block makes the archive of the arch directory. -archive:: - $(AMTAR) -cvh --exclude=dev --exclude=CVS -f $(PACKAGE)-$(VERSION)-arch.tar arch - $(GZIP) -cv9 $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.gz - $(BZIP) -cv --repetitive-best $(PACKAGE)-$(VERSION)-arch.tar > ../$(PACKAGE)-$(VERSION)-arch.tar.bz2 - $(RM) $(PACKAGE)-$(VERSION)-arch.tar - -libArch: - tar cvf A`perl puredate.pl`.tar arch treasures - gzip A`perl puredate.pl`.tar