dist: $(DIST_FILES) distname
rm -rf `cat distname`; mkdir `cat distname`
@echo "Copying distribution files"
@for file in $(DIST_FILES); do \
cp -p $(srcdir)/$$file `cat distname`; \
done
if test -n "$(SUBDIRS)"; then \
for subdir in $(SUBDIRS); do \
(cd $$subdir; $(MAKE) subdir=$$subdir $@); done; \
fi
chmod -R a+r `cat distname`
tar -chozf `cat distname`.tar.gz `cat distname`
rm -rf `cat distname` distname