@echo "Copying files to distribution directory"
@git clone $(srcdir) $(distdir)
@chmod 755 $(distdir)
+ @sleep 1 #avoid rebuilding sbr/dtimep.c in release
@for file in $(DISTINCLUDE); do \
cp -p $(srcdir)/$$file $(distdir)/$$file; \
touch $(distdir)/$$file; \
rm -rf $(distdir)/$$file; \
done
@chmod -R a+r $(distdir)
- tar chf - $(distdir) | gzip -c > $(tarfile)
+ tar --owner=0 --group=0 -chf - $(distdir) | gzip -c > $(tarfile)
@rm -rf $(distdir) distname
@echo "Done building mmh-$(VERSION) distribution"