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