From 45defb75ebb64fa58182e53d876659ec06c8abd3 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sun, 27 Apr 2014 17:07:15 +0200 Subject: [PATCH] Reduce dist to one tar call --- Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Makefile b/Makefile index e946758..35c3e6a 100644 --- a/Makefile +++ b/Makefile @@ -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