TODO: tests: add test for bug #1283103 -- selinux mount vs security xattrs
[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 = glusterfs-api.pc libgfchangelog.pc libgfdb.pc \
24         tests/env.rc contrib/umountd/Makefile{,.in}
25 CONFIG_CLEAN_FILES = $(CONTRIB_BUILDDIR)/uuid/uuid_types.h
26
27 gitclean: distclean
28         find . -name Makefile.in -exec rm -f {} \;
29         find . -name mount.glusterfs -exec rm -f {} \;
30         rm -fr autom4te.cache
31         rm -f missing aclocal.m4 config.h.in config.guess config.sub ltmain.sh install-sh configure depcomp
32         -rm -fr $(CONTRIBDIR)/argp-standalone/autom4te.cache
33         -rm -f $(CONTRIBDIR)/argp-standalone/aclocal.m4
34         -rm -f $(CONTRIBDIR)/argp-standalone/config.h.in
35         -rm -f $(CONTRIBDIR)/argp-standalone/configure
36         -rm -f $(CONTRIBDIR)/argp-standalone/config.status
37         -rm -f $(CONTRIBDIR)/argp-standalone/config.log
38         -rm -f $(CONTRIBDIR)/argp-standalone/depcomp
39         -rm -fr $(CONTRIBDIR)/argp-standalone/.deps
40         -rm -f $(CONTRIBDIR)/argp-standalone/install-sh
41         -rm -f $(CONTRIBDIR)/argp-standalone/missing
42
43 dist-hook: gen-VERSION gen-ChangeLog
44         -rm -fr $(distdir)/contrib/argp-standalone/autom4te.cache
45         -rm -fr $(distdir)/contrib/argp-standalone/.deps
46         -rm -fr $(distdir)/contrib/umountd/.deps
47         -rm -fr $(distdir)/config.{guess,sub}
48
49 .PHONY: gen-VERSION gen-ChangeLog
50
51 gen-ChangeLog:
52         (cd $(srcdir) && git diff && echo ===== git log ==== && git log) > $(distdir)/ChangeLog
53
54 gen-VERSION:
55         if test -d $(top_srcdir)/.git; then             \
56           cd $(top_srcdir);                             \
57           ./build-aux/pkg-version --full                \
58             > $(abs_top_builddir)/$(distdir)/VERSION;   \
59         fi