]> 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:51:33 +0000 (18:51 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 12 Nov 1995 18:51:33 +0000 (18:51 +0000)
dist.am

diff --git a/dist.am b/dist.am
index 24721b8cf4d821a52d3ac2fc213b66072780e508..e68df2d3f10555567acc8af128039df3d3ce9bb1 100644 (file)
--- a/dist.am
+++ b/dist.am
@@ -1,11 +1,16 @@
-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
-       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.027256 seconds and 5 git commands to generate.