Make the 'clean' target faster when run from a git repository
[privoxy.git] / GNUmakefile.in
index 31a0ee8..da1b0cc 100644 (file)
@@ -1,6 +1,6 @@
 # Note:  GNUmakefile is built automatically from GNUmakefile.in
 #
-# $Id: GNUmakefile.in,v 1.246 2016/05/03 13:21:24 fabiankeil Exp $
+# $Id: GNUmakefile.in,v 1.248 2016/05/08 10:44:20 fabiankeil Exp $
 #
 # Written by and Copyright (C) 2001-2016 members of the
 # Privoxy team. https://www.privoxy.org/
@@ -376,6 +376,8 @@ gen-dist: dist-check
        for foo in $(DOC_FILES); do \
                (cd .. && $(TAR) --exclude "PACKAGERS" -uvhf $(GEN_DIST_TAR_NAME) privoxy-$(VERSION)-$(CODE_STATUS)/$$foo;) \
        done;
+# add tools
+       (cd .. && $(TAR) -uvhf $(GEN_DIST_TAR_NAME) privoxy-$(VERSION)-$(CODE_STATUS)/tools)
 # and zip the archive
        $(RM) ../privoxy-$(VERSION)-$(CODE_STATUS)
        $(GZIP_PROG) ../$(GEN_DIST_TAR_NAME)
@@ -729,8 +731,8 @@ $(PROGRAM): $(OBJS) $(W32_FILES)
 clean:
        $(RM) a.out $(OBJS) $(W32_FILES) $(W32_INIS) $(PROGRAM) default.action \
                config.base config.tmp \
-               `find . \( -name TAGS -o -name tags \) -and -not -path "./.git/refs/tags"` \
-               `find . -name "*.orig" -a -not -name rc.privoxy.orig`
+               `find . \( -name TAGS -o -name tags \) -a -not -path "./.git/*"` \
+               `find . -name "*.orig" -a -not -name rc.privoxy.orig -a -not -path "./.git/*"`
 
 clean-editor-files:
        $(RM) `find . -name "*~"`