Rename --with-man -> --with-manual
[quvi.git] / Makefile.am
blob6374f8ef07500da4c3c01dbea7ec1d867ecb3fae
1 ACLOCAL_AMFLAGS = -I m4
3 EXTRA_DIST = \
4 libquvi.pc.in \
5 libquvi.ver \
6 ChangeLog.pre-gitlog
8 pkgconfigdir = $(libdir)/pkgconfig
9 pkgconfig_DATA = libquvi.pc
11 SUBDIRS = src examples share scripts doc
13 if ENABLE_TESTS
14 SUBDIRS += tests
16 check: test
18 test:
19         @(cd tests; $(MAKE) all test)
20 endif
22 .PHONY: doc dist-doc
23 doc:
24 if HAVE_ND
25         @test -d $(top_builddir)/doc/quvi-@VERSION@ || \
26                 mkdir $(top_builddir)/doc/quvi-@VERSION@
27         @test -d $(top_builddir)/doc/nd_temp || \
28                 mkdir $(top_builddir)/doc/nd_temp
29         @@ND@ -i $(top_srcdir)/doc/ -i $(top_srcdir)/src/ \
30                 -o $(ND_FORMAT) $(top_builddir)/doc/quvi-@VERSION@/ \
31                 -p $(top_builddir)/doc/nd_temp/ && echo See doc/quvi-@VERSION@
32 else
33         @echo "error: configure did not find NaturalDocs" && exit 1
34 endif
35 dist-doc: doc
36         @tar chof - $(top_builddir)/doc/quvi-@VERSION@ | \
37                         GZIP=--best gzip -c >quvi-doc-@VERSION@.tar.gz \
38                         && echo Created quvi-doc-@VERSION@.tar.gz
40 ChangeLog:
41         @if test -f $(top_srcdir)/.git/HEAD; then \
42                 @GIT@ log --stat --after="Sun Nov 14 11:03:50 2010" > $@; \
43         fi
45 dist: ChangeLog
47 .PHONY: ChangeLog