From: Tom Tromey Date: Sun, 12 Nov 1995 18:51:33 +0000 (+0000) Subject: Changed to assume PACKAGE and VERSION are set by configure. X-Git-Tag: Release-0-25~412 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=445de6a0331bc8ecf6c1cf3c9ddf2f8fd73f43c8;p=automake.git Changed to assume PACKAGE and VERSION are set by configure. --- diff --git a/dist.am b/dist.am index 24721b8c..e68df2d3 100644 --- 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)