1 ## See dist-subd-top.am to understand this file.
2 distdir = $(PACKAGE)-$(VERSION)
6 (cd $(srcdir) && automake --include-deps --output-dir=$(distdir))
7 @for file in $(DISTFILES); do \
8 test -f $(distdir)/$$file || { \
10 ln $(srcdir)/$$file $(distdir)/$$file; \
12 echo copying $$file instead; \
13 cp -p $(srcdir)/$$file $(distdir)/$$file; \
16 @sublist="$(DIST_SUBDIRS)"; \
17 for dir in $$sublist; do \
18 echo copying directory $$dir; \
19 tar -chof - $$dir | (cd $(distdir) && tar -xBpf -); \
21 chmod -R a+r $(distdir)
22 tar -chozf $(distdir).tar.gz $(distdir)