Edit

kc3-lang/automake/dist-subd-top.am

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1995-11-22 07:23:10
    Hash : bf1c24ae
    Message : (dist): Run `automake --include-deps' before making distribution

  • dist-subd-top.am
  • distdir = $(PACKAGE)-$(VERSION)
    dist: $(DIST_FILES)
    	rm -rf $(distdir)
    	mkdir $(distdir)
    	(cd $(srcdir); automake --include-deps)
    	@for file in $(DIST_FILES); do		\
    	  test -f $(distdir)/$$file || {	\
    	    echo linking $$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
    	@sublist="$(DIST_SUBDIRS)";		\
    	for dir in $$sublist; do		\
    	  echo copying directory $$dir;		\
    	  tar cf - $$dir | (cd $(distdir); tar xBpf -); \
    	done
    	chmod -R a+r $(distdir)
    	tar -chozf $(distdir).tar.gz $(distdir)
    	rm -rf $(distdir)