Edit

kc3-lang/automake/dist.am

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1995-11-12 18:51:33
    Hash : 400a5a10
    Message : Changed to assume PACKAGE and VERSION are set by configure.

  • dist.am
  • 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 $(distdir)/$$file || \
    	    { echo copying $$file instead; cp -p $(srcdir)/$$file $(distdir)/$$file;}; \
    	done
    	chmod -R a+r $(distdir)
    	tar -chozf $(distdir).tar.gz $(distdir)
    	rm -rf $(distdir)