From bfbd710b675d61fb3e8eaecd70eca92f806c6d8d Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Tue, 9 Jun 2015 15:25:20 +0530 Subject: build: fix gitclean target $ make gitclean # deleting unexpected 'Makefile' files ... $ git status ... deleted: extras/FreeBSD/Makefile deleted: extras/command-completion/Makefile deleted: extras/test/ld-preload-test/Makefile ... This change fix to ignore above built-in makefiles while executing 'gitclean' target Change-Id: I5365f5a1fe5b36141a6fe7ba27c38a2158f9f3a3 BUG: 1229639 Signed-off-by: Prasanna Kumar Kalever Reviewed-on: http://review.gluster.org/11136 Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Niels de Vos --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 900b5fe9796..5bfe07c4abf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,7 +25,9 @@ CONFIG_CLEAN_FILES = $(CONTRIB_BUILDDIR)/uuid/uuid_types.h gitclean: distclean find . -name Makefile.in -exec rm -f {} \; - find . -name Makefile -exec rm -f {} \; + find . -name Makefile \( ! -path "$(top_srcdir)/extras/FreeBSD/*" \ + ! -path "$(top_srcdir)/extras/command-completion/*" \ + ! -path "$(top_srcdir)/extras/test/*" \) -exec rm -f {} \; find . -name mount.glusterfs -exec rm -f {} \; rm -fr autom4te.cache rm -f missing aclocal.m4 config.h.in config.guess config.sub ltmain.sh install-sh configure depcomp -- cgit