summaryrefslogtreecommitdiff
path: root/dist-subd-top.am
diff options
context:
space:
mode:
authorDavid J. MacKenzie <djm@gnu.org>1994-09-28 17:26:21 +0000
committerDavid J. MacKenzie <djm@gnu.org>1994-09-28 17:26:21 +0000
commit9769db08c82388761301a212f68eece54fffc209 (patch)
treedba7ae5711be3c62b2613aaff90e5dbd9799606b /dist-subd-top.am
parenteb5fc858f66a2044cacd3b25792d2d7e7164ca84 (diff)
downloadautomake-9769db08c82388761301a212f68eece54fffc209.tar.gz
Initial revision
Diffstat (limited to 'dist-subd-top.am')
-rw-r--r--dist-subd-top.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/dist-subd-top.am b/dist-subd-top.am
new file mode 100644
index 000000000..e9116d449
--- /dev/null
+++ b/dist-subd-top.am
@@ -0,0 +1,13 @@
+dist: $(DIST_FILES) distname
+ rm -rf `cat distname`; mkdir `cat distname`
+ @for file in $(DIST_FILES); do \
+ echo linking $$file; \
+ ln $(srcdir)/$$file `cat distname` || \
+ { echo copying $$file instead; cp -p $(srcdir)/$$file `cat distname`;}; \
+ done
+ for subdir in $(SUBDIRS); do \
+ (cd $$subdir; $(MAKE) subdir=$$subdir $@); done
+ chmod -R a+r `cat distname`
+ tar -chozf `cat distname`.tar.gz `cat distname`
+ rm -rf `cat distname` distname
+