diff options
authorKaleb S KEITHLEY <>2015-11-13 14:07:03 -0500
committerKaleb KEITHLEY <>2015-11-15 03:02:32 -0800
commitb7b13c73369a3cb237de16d58425b63640c6f33e (patch)
parent869b81fceabf3b9d5508665fc36fa7f98a4d4316 (diff)
build: `make distclean` doesn't clean all it ought to, needs to
Debian builds fail to "build twice in a row" due to left over files remaining after running `make distclean` The main culprits are files created from *.in files during ./configure. In particular these are ./glusterfs-api.pc, ./libgfchangelog.pc, ./libgfdb.pc, and ./tests/env.rc. The strange one is contrib/umountd/Makefile{,.in}. While these are created by ./configure - for reasons I don't quite fathom, perhaps because contrib/umountd is included in EXTRA_DIST - after that make and make distclean don't descend into the directory to build or clean it (because it's not needed for Linux, and not built.) Also removing the `find . -name Makefile -exec rm -f {}\;` from the gitclean target, it's not needed (redundant) as its prereq distclean target will have already removed them. Change-Id: Ifc45b71d852052ef4b92f356279ce2ba2bbc5bb6 BUG: 1279836 Signed-off-by: Kaleb S KEITHLEY <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Milind Changire <> Tested-by: Milind Changire <> Reviewed-by: Niels de Vos <>
1 files changed, 2 insertions, 4 deletions
diff --git a/ b/
index 5bfe07c4abf..1201ca2319b 100644
--- a/
+++ b/
@@ -20,14 +20,12 @@ if USE_GFDB
pkgconfig_DATA += libgfdb.pc
+CLEANFILES = glusterfs-api.pc libgfchangelog.pc libgfdb.pc \
+ tests/env.rc contrib/umountd/Makefile{,.in}
gitclean: distclean
find . -name -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.guess config.sub install-sh configure depcomp