tier/dht: Ignoring replica for migration counting
[obnox/glusterfs.git] / Makefile.am
1 EXTRA_DIST = autogen.sh \
2         COPYING-GPLV2 COPYING-LGPLV3 \
3         INSTALL README.md AUTHORS THANKS NEWS \
4         glusterfs.spec glusterfs-api.pc.in libgfchangelog.pc.in libgfdb.pc.in \
5         run-tests.sh \
6         build-aux/pkg-version \
7         build-aux/xdrgen \
8         contrib/argp-standalone \
9         contrib/umountd \
10         contrib/uuid \
11         $(shell find $(top_srcdir)/tests -type f -print)
12
13 SUBDIRS = $(ARGP_STANDALONE_DIR) libglusterfs rpc api xlators glusterfsd \
14         $(FUSERMOUNT_SUBDIR) doc extras cli heal @SYNCDAEMON_SUBDIR@ \
15         @UMOUNTD_SUBDIR@ tools
16
17 pkgconfigdir = @pkgconfigdir@
18 pkgconfig_DATA = glusterfs-api.pc libgfchangelog.pc
19 if USE_GFDB
20 pkgconfig_DATA += libgfdb.pc
21 endif
22
23 CLEANFILES =
24 CONFIG_CLEAN_FILES = $(CONTRIB_BUILDDIR)/uuid/uuid_types.h
25
26 gitclean: distclean
27         find . -name Makefile.in -exec rm -f {} \;
28         find . -name Makefile \( ! -path "$(top_srcdir)/extras/FreeBSD/*" \
29                 ! -path "$(top_srcdir)/extras/command-completion/*" \
30                 ! -path "$(top_srcdir)/extras/test/*" \) -exec rm -f {} \;
31         find . -name mount.glusterfs -exec rm -f {} \;
32         rm -fr autom4te.cache
33         rm -f missing aclocal.m4 config.h.in config.guess config.sub ltmain.sh install-sh configure depcomp
34         -rm -fr $(CONTRIBDIR)/argp-standalone/autom4te.cache
35         -rm -f $(CONTRIBDIR)/argp-standalone/aclocal.m4
36         -rm -f $(CONTRIBDIR)/argp-standalone/config.h.in
37         -rm -f $(CONTRIBDIR)/argp-standalone/configure
38         -rm -f $(CONTRIBDIR)/argp-standalone/config.status
39         -rm -f $(CONTRIBDIR)/argp-standalone/config.log
40         -rm -f $(CONTRIBDIR)/argp-standalone/depcomp
41         -rm -fr $(CONTRIBDIR)/argp-standalone/.deps
42         -rm -f $(CONTRIBDIR)/argp-standalone/install-sh
43         -rm -f $(CONTRIBDIR)/argp-standalone/missing
44
45 dist-hook: gen-VERSION gen-ChangeLog
46         -rm -fr $(distdir)/contrib/argp-standalone/autom4te.cache
47         -rm -fr $(distdir)/contrib/argp-standalone/.deps
48         -rm -fr $(distdir)/contrib/umountd/.deps
49         -rm -fr $(distdir)/config.{guess,sub}
50
51 .PHONY: gen-VERSION gen-ChangeLog
52
53 gen-ChangeLog:
54         (cd $(srcdir) && git diff && echo ===== git log ==== && git log) > $(distdir)/ChangeLog
55
56 gen-VERSION:
57         if test -d $(top_srcdir)/.git; then             \
58           cd $(top_srcdir);                             \
59           ./build-aux/pkg-version --full                \
60             > $(abs_top_builddir)/$(distdir)/VERSION;   \
61         fi