glusterfs
/
Makefile.am
57 строк · 1.9 Кб
1SOURCES = site.h
2
3EXTRA_DIST = autogen.sh \
4COPYING-GPLV2 COPYING-LGPLV3 COMMITMENT \
5INSTALL README.md AUTHORS THANKS NEWS \
6glusterfs.spec glusterfs-api.pc.in libgfchangelog.pc.in \
7run-tests.sh \
8build-aux/pkg-version \
9contrib/umountd \
10$(shell find $(top_srcdir)/tests -type f -print)
11
12
13SUBDIRS = $(ARGP_STANDALONE_DIR) libglusterfs rpc api \
14glusterfsd xlators $(FUSERMOUNT_SUBDIR) doc extras cli heal \
15@SYNCDAEMON_SUBDIR@ @UMOUNTD_SUBDIR@ tools events
16
17pkgconfigdir = @pkgconfigdir@
18pkgconfig_DATA = glusterfs-api.pc libgfchangelog.pc
19
20CLEANFILES = glusterfs-api.pc libgfchangelog.pc contrib/umountd/Makefile
21
22clean-local:
23find . -name '*.o' -o -name '*.lo' -o -name '.Po' | xargs rm -f
24
25gitclean: distclean
26find . -name Makefile.in -exec rm -f {} \;
27find . -name mount.glusterfs -exec rm -f {} \;
28find . -name .deps -o -name .libs | xargs rm -rf
29rm -fr autom4te.cache
30rm -f missing aclocal.m4 config.h.in config.guess config.sub ltmain.sh install-sh configure depcomp
31
32# dist-hook gets executed with 'make dist', this is the only target getting
33# executed, a dist-hook in other Makefile.am files seem to get ignored.
34dist-hook: gen-VERSION gen-ChangeLog
35-rm -fr $(distdir)/contrib/umountd/.deps
36-rm -f $(distdir)/events/src/eventtypes.py
37-rm -f $(distdir)/tests/env.rc
38-cp -f $(top_srcdir)/build-aux/config.sub.dist $(distdir)/config.sub
39-cp -f $(top_srcdir)/build-aux/config.guess.dist $(distdir)/config.guess
40
41.PHONY: gen-VERSION gen-ChangeLog clang-check
42
43clang-check:
44@$(top_srcdir)/extras/clang-checker.sh
45
46gen-ChangeLog:
47if test -d $(srcdir)/.git; then \
48(cd $(srcdir) && git diff && echo ===== git log ==== && git log) > $(distdir)/ChangeLog; \
49fi
50
51.PHONY : gen-VERSION
52gen-VERSION:
53if test -d $(top_srcdir)/.git; then \
54cd $(top_srcdir); \
55./build-aux/pkg-version --full \
56> $(abs_top_builddir)/$(distdir)/VERSION; \
57fi
58