From 4208cfa0162f433ef17f289c6568f19648341fd9 Mon Sep 17 00:00:00 2001 From: Bruno Coudoin Date: Mon, 19 Dec 2005 22:24:28 +0000 Subject: - Patch by Patrick GOLDBRONN pgoldbronn on free.fr Support out of dir compilation --- (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 18c05e4..074ba51 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,15 +34,15 @@ distcore = $(PACKAGE)-core-$(VERSION) install-data-local: @$(NORMAL_INSTALL) - if test -d @PACKAGE_DATA_DIR@; then \ - $(mkinstalldirs) $(DESTDIR)/$(pkgdatadir)/@PACKAGE_DATA_DIR@; \ - cd @PACKAGE_DATA_DIR@ ; tar cf - --exclude "Makefile.in" --exclude "*.in" --exclude "*~" --exclude "Makefile" --exclude "Makefile.am" --exclude CVS --exclude .xvpics --exclude "*.assetml" * | ( cd $(DESTDIR)/$(pkgdatadir)/@PACKAGE_DATA_DIR@ ; tar xf -) ; cd .. ; \ + if test -d $(srcdir)/$(PACKAGE_DATA_DIR); then \ + $(mkinstalldirs) $(DESTDIR)/$(pkgdatadir)/$(PACKAGE_DATA_DIR); \ + cd $(srcdir)/$(PACKAGE_DATA_DIR) ; tar cf - --exclude "Makefile.in" --exclude "*.in" --exclude "*~" --exclude "Makefile" --exclude "Makefile.am" --exclude CVS --exclude .xvpics --exclude "*.assetml" * | ( cd $(DESTDIR)/$(pkgdatadir)/$(PACKAGE_DATA_DIR) ; tar xf -) ; cd .. ; \ fi dist-hook: - if test -d @PACKAGE_DATA_DIR@; then \ - $(mkinstalldirs) $(distdir)/@PACKAGE_DATA_DIR@; \ - cd @PACKAGE_DATA_DIR@ ; tar cf - --exclude "Makefile.in" --exclude "Makefile" --exclude "*~" --exclude ".*" --exclude CVS --exclude .xvpics * | ( cd ../$(distdir)/@PACKAGE_DATA_DIR@ ; tar xf -) ; cd .. ; \ + if test -d $(PACKAGE_DATA_DIR); then \ + $(mkinstalldirs) $(distdir)/$(PACKAGE_DATA_DIR); \ + cd $(srcdir)/$(PACKAGE_DATA_DIR) ; tar cf - --exclude "Makefile.in" --exclude "Makefile" --exclude "*~" --exclude ".*" --exclude CVS --exclude .xvpics * | ( cd ../$(distdir)/$(PACKAGE_DATA_DIR) ; tar xf -) ; cd .. ; \ fi -- cgit v0.9.1