Makefile.am: Pass gen-ver.sh value as $1 to stamp.sh
[libquvi-scripts.git] / Makefile.am
blob73810ab6d3f4d7997b5609fce615385ebb62338e
1 ACLOCAL_AMFLAGS=-I m4
2 EXTRA_DIST=     gen-ver.sh libquvi-scripts-0.9.pc.in VERSION
4 SUBDIRS=        share
5 if WITH_MANUAL
6 SUBDIRS+=       doc
7 endif
9 pkgconfigdir=   $(libdir)/pkgconfig
10 pkgconfig_DATA= libquvi-scripts-0.9.pc
12 .PHONY: test stamp_scripts ChangeLog VERSION
14 if WITH_TESTS
15 SUBDIRS+=       tests
17 check: test
19 test: all
20         @(cd tests ; $(MAKE) test)
21 endif # WITH_TESTS
23 stamp_scripts:
24         @if test -x "$(top_srcdir)/stamp.sh"; then \
25                 "$(top_srcdir)/stamp.sh" "`$(top_srcdir)/gen-ver.sh`" "$(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