Clean up doc/schema makefiles.
[shibboleth/cpp-opensaml.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)/samltest/data -name .svn`
11
12
13 SUBDIRS = doc schemas saml samltest
14
15 all-local: opensaml.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 opensaml.spec: opensaml.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-opensaml2.sln \
41         libtool.m4 \
42         doxygen.m4 \
43         acx_pthread.m4 \
44         depcomp \
45         config_win32.h \
46         opensaml.spec.in \
47         opensaml.spec \
48         pkginfo.in \
49         pkginfo \
50         checkinstall
51
52 DISTCLEANFILES = opensaml.spec pkginfo