Corrected makefile name
[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-opensaml2.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
39 install-data-hook:
40         rm -rf $(prefix)/doc/@PACKAGE@/api
41         cp -r doc/api $(prefix)/doc/@PACKAGE@
42 endif
43
44 opensaml.spec: opensaml.spec.in Makefile
45         rm -f $@.tmp
46         sed < $< > $@.tmp \
47             -e 's:@-VERSION-@:${VERSION}:'
48         mv $@.tmp $@
49
50 pkginfo: pkginfo.in Makefile
51         rm -f $@.tmp
52         sed < $< > $@.tmp \
53             -e 's:@-VERSION-@:${VERSION}:'
54         mv $@.tmp $@
55
56 DISTCLEANFILES = opensaml.spec pkginfo