Clean up doc handling.
[shibboleth/cpp-xmltooling.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 ACLOCAL_AMFLAGS = -I .
4
5 include doxygen.am
6
7 MOSTLYCLEANFILES = $(DX_CLEANFILES)
8
9 dist-hook:
10         rm -rf `find $(distdir)/xmltoolingtest/data -name .svn`
11         rm -rf `find $(distdir)/doc/api -name .svn`
12
13
14 SUBDIRS = doc schemas xmltooling xmltoolingtest
15
16 GENFILES = xmltooling.spec pkginfo Portfile
17
18 if DX_COND_doc
19 all-local: doxygen-doc $(GENFILES)
20 else
21 all-local: $(GENFILES)
22 endif
23
24 $(GENFILES): %: %.in Makefile
25         rm -f $@.tmp
26         sed < $@.in > $@.tmp \
27             -e 's:@-VERSION-@:${VERSION}:'
28         mv $@.tmp $@
29
30 EXTRA_DIST = $(DX_CONFIG) \
31         cpp-xmltooling.sln \
32         acx_pthread.m4 \
33         acinclude.m4 \
34         libtool.m4 \
35         doxygen.m4 \
36         depcomp \
37         config_win32.h \
38         $(GENFILES) \
39         $(GENFILES:%=%.in) \
40         depend \
41         postinstall
42
43 DISTCLEANFILES = $(GENFILES)