--- deliantra/server/Makefile.am 2016/11/18 03:46:50 1.33 +++ deliantra/server/Makefile.am 2016/11/18 03:53:34 1.34 @@ -22,7 +22,11 @@ # The authors can be reached via e-mail to # -SUBDIRS = include lib ext +pkgstatedir = @pkgstatedir@ +pkgconfdir = @pkgconfdir@ +PERL = @PERL@ + +SUBDIRS = include lib EXTRA_DIST = AUTHORS Changes COPYING.GNU COPYING.Affero autogen.sh TODO \ common/README \ @@ -30,7 +34,8 @@ random_maps/Notes \ server/typemap server/genacc server/genconst \ utils/metaserver.pl.in utils/player_dl.pl.in utils/player_dl.html utils/cfutil.in \ - doc/historic doc/development + doc/historic doc/development \ + ext/*.pm ext/*.ext CLEANFILES = server/const_iv.h server/perlxsi.c @@ -174,8 +179,6 @@ ############################################################################# # pod/ -pkgstatedir = @pkgstatedir@ - poddir=$(pkgdatadir)/pod dist_pod_DATA = pod/command_help.pod pod/dmcommand_help.pod pod/emote_help.pod pod/books.pod pod/generic_help.pod @@ -193,6 +196,30 @@ rm -rf `find $(distdir)/doc -name CVS` ############################################################################# +# ext/ + +OLDEXT = 00_map_handling.ext cfplus_build.ext clientchk.ext db-scheduler.ext \ + guildrules.ext map-prefetch.ext schmorp-clientchk.ext schmorp.irc.ext slag_ex.ext + +PERL = @PERL@ + +install-data-local: + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/ext + for i in $(srcdir)/ext/*.pm $(srcdir)/ext/*.ext; do \ + $(INSTALL_DATA) "$$i" $(DESTDIR)$(pkgdatadir)/ext; \ + done + (cd $(DESTDIR)$(pkgdatadir)/ext/ && rm -f $(OLDEXT)) + +# Uninstall unchanged config/var files so make distcheck is happy +# but leave changed file, so no configuration/game state is lost +uninstall-local: + -cd $(srcdir)/ext && \ + for i in *.pm *.ext; do \ + rm -f $(DESTDIR)$(pkgdatadir)/ext/"$$i"; \ + done + +############################################################################# tags: ctags