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