summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist-subd-top.am5
-rw-r--r--dist.am5
2 files changed, 10 insertions, 0 deletions
diff --git a/dist-subd-top.am b/dist-subd-top.am
index 23291d1e6..382a1952a 100644
--- a/dist-subd-top.am
+++ b/dist-subd-top.am
@@ -12,6 +12,11 @@ dist: $(DIST_FILES) $(DIST_DIRS)
chmod 777 $(distdir)/$$subdir; \
(cd $$subdir; $(MAKE) subdir=$$subdir $@) || exit 1; \
done
+ @sublist=$(DIST_SUBDIRS); \
+ for dir in $$sublist; do \
+ echo copying directory $$dir; \
+ tar cf - $$dir | (cd $(distdir); tar xBpf -); \
+ done
chmod -R a+r $(distdir)
tar -chozf $(distdir).tar.gz $(distdir)
rm -rf $(distdir)
diff --git a/dist.am b/dist.am
index 42bad6409..bbabdcd24 100644
--- a/dist.am
+++ b/dist.am
@@ -7,6 +7,11 @@ dist: $(DIST_FILES) $(DIST_DIRS)
ln $(srcdir)/$$file $(distdir)/$$file || \
{ echo copying $$file instead; cp -p $(srcdir)/$$file $(distdir)/$$file;}; \
done
+ @sublist=$(DIST_SUBDIRS); \
+ for dir in $$sublist; do \
+ echo copying directory $$dir; \
+ tar cf - $$dir | (cd $(distdir); tar xBpf -); \
+ done
chmod -R a+r $(distdir)
tar -chozf $(distdir).tar.gz $(distdir)
rm -rf $(distdir)