diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index 43e2a28ce..138f0d372 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,15 +6,15 @@ EXTRA_DIST = VERSION PROJECTS dist-hook: @set -e; \ - for file in `find $(srcdir) -type f -name distfiles`; do \ + for file in `cd $(top_srcdir); find . -type f -name distfiles`; do \ dir=`dirname $$file` ; $(mkinstalldirs) $(distdir)/$$dir ; \ - for i in distfiles `cat $$file` ; do \ - ln $(srcdir)/$$dir/$$i $(distdir)/$$dir/$$i 2> /dev/null \ - || cp -p $(srcdir)/$$dir/$$i $(distdir)/$$dir/$$i; \ + for i in distfiles `cat $(top_srcdir)/$$file` ; do \ + ln $(top_srcdir)/$$dir/$$i $(distdir)/$$dir/$$i 2> /dev/null \ + || cp -p $(top_srcdir)/$$dir/$$i $(distdir)/$$dir/$$i; \ done ; \ done @set -e; \ - sed -e 's/@pkg_version@/$(VERSION)/g' $(srcdir)/scripts/gnupg.spec \ + sed -e 's/@pkg_version@/$(VERSION)/g' $(top_srcdir)/scripts/gnupg.spec \ > $(distdir)/scripts/gnupg-$(VERSION).spec |