1 distdir = $(PACKAGE)-$(VERSION)
5 (cd $(srcdir); automake --include-deps)
6 @for file in $(DIST_FILES); do \
7 test -f $(distdir)/$$file || { \
9 ln $(srcdir)/$$file $(distdir)/$$file; \
11 echo copying $$file instead; \
12 cp -p $(srcdir)/$$file $(distdir)/$$file; \
15 for subdir in $(SUBDIRS); do \
16 mkdir $(distdir)/$$subdir || exit 1; \
17 chmod 777 $(distdir)/$$subdir; \
18 (cd $$subdir; $(MAKE) subdir=$$subdir $@) || exit 1; \
20 @sublist="$(DIST_SUBDIRS)"; \
21 for dir in $$sublist; do \
22 echo copying directory $$dir; \
23 tar cf - $$dir | (cd $(distdir); tar xBpf -); \
25 chmod -R a+r $(distdir)
26 tar -chozf $(distdir).tar.gz $(distdir)