Reduce special handling of doc/schemas for install/dist targets
[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
12
13 SUBDIRS = doc schemas xmltooling xmltoolingtest
14
15 all-local: xmltooling.spec pkginfo
16
17 if DX_COND_doc
18 all-local: doxygen-doc
19 APIDOCS = doc/api
20 endif
21
22 install-data-hook:
23         rm -rf $(prefix)/doc/@PACKAGE@/api
24         cp -r doc/api $(prefix)/doc/@PACKAGE@
25
26 xmltooling.spec: xmltooling.spec.in Makefile
27         rm -f $@.tmp
28         sed < $< > $@.tmp \
29             -e 's:@-VERSION-@:${VERSION}:'
30         mv $@.tmp $@
31
32 pkginfo: pkginfo.in Makefile
33         rm -f $@.tmp
34         sed < $< > $@.tmp \
35             -e 's:@-VERSION-@:${VERSION}:'
36         mv $@.tmp $@
37
38 EXTRA_DIST = $(DX_CONFIG) \
39         $(APIDOCS) \
40         cpp-xmltooling.sln \
41         acx_pthread.m4 \
42         acinclude.m4 \
43         libtool.m4 \
44         doxygen.m4 \
45         depcomp \
46         config_win32.h \
47         xmltooling.spec.in \
48         xmltooling.spec \
49         pkginfo.in \
50         pkginfo \
51         checkinstall
52
53 DISTCLEANFILES = xmltooling.spec pkginfo