Fix for Bugzilla bug id 565 'doxygen required by make even if disabled or not found'
[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 EXTRA_DIST = $(DX_CONFIG) \
10         doc \
11         schemas \
12         cpp-opensaml.sln \
13         libtool.m4 \
14         doxygen.m4 \
15         depcomp \
16         config_win32.h \
17         opensaml.spec.in \
18         opensaml.spec \
19         pkginfo.in \
20         pkginfo \
21         checkinstall
22
23
24 dist-hook:
25         rm -rf `find $(distdir)/samltest/data -name .svn`
26         rm -rf `find $(distdir)/schemas -name .svn`
27         rm -rf `find $(distdir)/schemas -name Makefile`
28         rm -rf `find $(distdir)/doc -name .svn`
29         rm -rf `find $(distdir)/doc -name Makefile`
30
31
32 SUBDIRS = schemas saml samltest
33
34 all-local: opensaml.spec pkginfo
35
36 if DX_COND_doc
37 all-local: doxygen-doc
38 endif
39
40 opensaml.spec: opensaml.spec.in Makefile
41         rm -f $@.tmp
42         sed < $< > $@.tmp \
43             -e 's:@-VERSION-@:${VERSION}:'
44         mv $@.tmp $@
45
46 pkginfo: pkginfo.in Makefile
47         rm -f $@.tmp
48         sed < $< > $@.tmp \
49             -e 's:@-VERSION-@:${VERSION}:'
50         mv $@.tmp $@
51
52 DISTCLEANFILES = opensaml.spec pkginfo