Reduce dist to one tar call

This commit is contained in:
Sebastian Ramacher 2014-04-27 17:07:15 +02:00
parent 24d0bbd341
commit 45defb75eb

View file

@ -144,13 +144,7 @@ test: ${OBJECTS}
$(QUIET)make -C tests run
dist: clean build-manpages
$(QUIET)tar -czf $(TARFILE) `git ls-files`
$(QUIET)rm -rf ${TARDIR}
$(QUIET)mkdir -p ${TARDIR}
$(QUIET)tar -xvf ${TARFILE} -C ${TARDIR}
$(QUIET)find ${TARDIR} -name '.gitignore' -exec rm {} \;
$(QUIET)tar -czf ${TARFILE} ${TARDIR}
$(QUIET)rm -rf ${TARDIR}
$(QUIET)tar -czf $(TARFILE) --exclude=.gitignore `git ls-files`
doc:
$(QUIET)make -C doc