b7b13c7336
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 <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/12579 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Milind Changire <mchangir@redhat.com> Tested-by: Milind Changire <mchangir@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
60 lines
2.1 KiB
Makefile
60 lines
2.1 KiB
Makefile
EXTRA_DIST = autogen.sh \
|
|
COPYING-GPLV2 COPYING-LGPLV3 \
|
|
INSTALL README.md AUTHORS THANKS NEWS \
|
|
glusterfs.spec glusterfs-api.pc.in libgfchangelog.pc.in libgfdb.pc.in \
|
|
run-tests.sh \
|
|
build-aux/pkg-version \
|
|
build-aux/xdrgen \
|
|
contrib/argp-standalone \
|
|
contrib/umountd \
|
|
contrib/uuid \
|
|
$(shell find $(top_srcdir)/tests -type f -print)
|
|
|
|
SUBDIRS = $(ARGP_STANDALONE_DIR) libglusterfs rpc api xlators glusterfsd \
|
|
$(FUSERMOUNT_SUBDIR) doc extras cli heal @SYNCDAEMON_SUBDIR@ \
|
|
@UMOUNTD_SUBDIR@ tools
|
|
|
|
pkgconfigdir = @pkgconfigdir@
|
|
pkgconfig_DATA = glusterfs-api.pc libgfchangelog.pc
|
|
if USE_GFDB
|
|
pkgconfig_DATA += libgfdb.pc
|
|
endif
|
|
|
|
CLEANFILES = glusterfs-api.pc libgfchangelog.pc libgfdb.pc \
|
|
tests/env.rc contrib/umountd/Makefile{,.in}
|
|
CONFIG_CLEAN_FILES = $(CONTRIB_BUILDDIR)/uuid/uuid_types.h
|
|
|
|
gitclean: distclean
|
|
find . -name Makefile.in -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
|
|
-rm -fr $(CONTRIBDIR)/argp-standalone/autom4te.cache
|
|
-rm -f $(CONTRIBDIR)/argp-standalone/aclocal.m4
|
|
-rm -f $(CONTRIBDIR)/argp-standalone/config.h.in
|
|
-rm -f $(CONTRIBDIR)/argp-standalone/configure
|
|
-rm -f $(CONTRIBDIR)/argp-standalone/config.status
|
|
-rm -f $(CONTRIBDIR)/argp-standalone/config.log
|
|
-rm -f $(CONTRIBDIR)/argp-standalone/depcomp
|
|
-rm -fr $(CONTRIBDIR)/argp-standalone/.deps
|
|
-rm -f $(CONTRIBDIR)/argp-standalone/install-sh
|
|
-rm -f $(CONTRIBDIR)/argp-standalone/missing
|
|
|
|
dist-hook: gen-VERSION gen-ChangeLog
|
|
-rm -fr $(distdir)/contrib/argp-standalone/autom4te.cache
|
|
-rm -fr $(distdir)/contrib/argp-standalone/.deps
|
|
-rm -fr $(distdir)/contrib/umountd/.deps
|
|
-rm -fr $(distdir)/config.{guess,sub}
|
|
|
|
.PHONY: gen-VERSION gen-ChangeLog
|
|
|
|
gen-ChangeLog:
|
|
(cd $(srcdir) && git diff && echo ===== git log ==== && git log) > $(distdir)/ChangeLog
|
|
|
|
gen-VERSION:
|
|
if test -d $(top_srcdir)/.git; then \
|
|
cd $(top_srcdir); \
|
|
./build-aux/pkg-version --full \
|
|
> $(abs_top_builddir)/$(distdir)/VERSION; \
|
|
fi
|