1ACLOCAL_AMFLAGS = -I m4
2
3SUBDIRS = \
4	tests/
5
6# See configure.ac for MASTERFILES_INSTALL_TARGETS.
7nobase_dist_masterfiles_DATA = @MASTERFILES_INSTALL_TARGETS@
8masterfilesdir=$(prefix)/masterfiles
9
10EXTRA_DIST = README.md inventory/README.md lib/README.md CONTRIBUTING.md LICENSE CFVERSION modules/promises
11
12# Do not reveal usernames of the buildslave
13TAR_OPTIONS = --owner=0 --group=0
14export TAR_OPTIONS
15
16# Store the permissions properly in the tarball for acceptance tests to succeed
17dist-hook:
18	find $(distdir) -name '*.cf*' | xargs chmod go-w
19
20tar-package:
21	pkgdir=`mktemp -d`  &&  export pkgdir  &&  \
22	origdir=`pwd`       &&  export origdir &&  \
23	umask 0022          &&  chmod 755 $$pkgdir && \
24	$(MAKE) prefix=$$pkgdir install  &&  \
25	(   cd $$pkgdir  &&  \
26            find . -name '*.cf*' | xargs -n1 chmod go-w  &&  \
27	    tardir=.  &&  $(am__tar) |  \
28	        GZIP=$(GZIP_ENV) gzip -c  \
29	        > "$$origdir"/$(PACKAGE)-$(VERSION)-$(RELEASE).pkg.tar.gz  \
30	)  ;  \
31	[ x$$pkgdir != x ]  &&  rm -rf $$pkgdir
32
33clean-local:
34	rm -rf build
35