Cleanup the NSFW, FIXME arrays
[libquvi-scripts.git] / Makefile.am
blob3f4ddd4e11ee57ddbc0e66722b1b9349ddb01ced
1 ACLOCAL_AMFLAGS=-I m4
2 EXTRA_DIST=     gen-ver.sh find-tests.sh libquvi-scripts-1.0.pc.in VERSION
4 SUBDIRS=        share
5 if WITH_MANUAL
6 SUBDIRS+=       doc
7 endif
9 pkgconfigdir=   $(libdir)/pkgconfig
10 pkgconfig_DATA= libquvi-scripts-1.0.pc
12 .PHONY: test stamp_scripts ChangeLog VERSION
14 if WITH_TESTS
15 SUBDIRS+=       tests
17 check: test
19 test:
20         @(cd tests; $(MAKE) all test)
21 endif # WITH_TESTS
23 stamp_scripts:
24         @if test -x "$(top_srcdir)/stamp.sh"; then \
25                 "$(top_srcdir)/stamp.sh" "$(top_srcdir)" "$(top_distdir)"; \
26         fi
28 VERSION:
29         @if test -d "$(top_srcdir)/.git" -o -f "$(top_srcdir)/.git"; then \
30                 "$(top_srcdir)/gen-ver.sh" "$(top_srcdir)" > $@; \
31         fi
33 ChangeLog:
34         @if test -d "$(top_srcdir)/.git" -o -f "$(top_srcdir)/.git"; then \
35                 git log --stat --name-only --date=short --abbrev-commit > $@; \
36         fi
38 dist-hook: VERSION stamp_scripts ChangeLog