aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 74e622051..9f5c443d5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -44,10 +44,22 @@ else
scd =
endif
-SUBDIRS = m4 intl jnlib common kbx ${gpg} ${sm} ${agent} ${scd} po doc tests
+SUBDIRS = m4 intl jnlib common kbx \
+ ${gpg} ${sm} ${agent} ${scd} po doc tests
+
dist-hook:
- @set -e; echo "$(VERSION)" > $(distdir)/VERSION
+ @set -e; \
+ for file in `cd $(top_srcdir); \
+ find scripts include -type f -name distfiles`; do \
+ dir=`dirname $$file` ; $(mkinstalldirs) $(distdir)/$$dir ; \
+ 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
+ echo "$(VERSION)" > $(distdir)/VERSION
+