]> sourceware.org Git - automake.git/commitdiff
Changed to assume PACKAGE and VERSION are set by configure.
authorTom Tromey <tromey@redhat.com>
Sun, 12 Nov 1995 18:48:13 +0000 (18:48 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 12 Nov 1995 18:48:13 +0000 (18:48 +0000)
dist-subd-top.am

index 2e2c922db3b76735dd4fa941f66b4c04748e9965..b4e161d05f78a75d01aded7fa5e98138b95c190a 100644 (file)
@@ -1,13 +1,21 @@
-dist: $(DIST_FILES) $(DIST_DIRS) distname
-       rm -rf `cat distname`; mkdir `cat distname`
+PACKAGE = @PACKAGE@
+VERSION = @VERSION@
+
+distdir = $(PACKAGE)-$(VERSION)
+dist: $(DIST_FILES) $(DIST_DIRS)
+       rm -rf $(distdir)
+       mkdir $(distdir)
        @for file in $(DIST_FILES); do \
          echo linking $$file; \
-         ln $(srcdir)/$$file `cat distname`/$$file || \
-           { echo copying $$file instead; cp -p $(srcdir)/$$file `cat distname`/$$file;}; \
+         ln $(srcdir)/$$file $(distdir)/$$file || \
+           { echo copying $$file instead; cp -p $(srcdir)/$$file $(distdir)/$$file;}; \
+       done
+       for subdir in $(SUBDIRS); do            \
+         mkdir $(distdir)/$$subdir || exit 1;  \
+         chmod 777 $(distdir)/$$subdir;        \
+         (cd $$subdir; $(MAKE) subdir=$$subdir $@) || exit 1; \
        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
+       chmod -R a+r $(distdir)
+       tar -chozf $(distdir).tar.gz $(distdir)
+       rm -rf $(distdir)
 
This page took 0.026068 seconds and 5 git commands to generate.