Fix backslashes in SHIBSP_PREFIX variable by manually creating it during the script...
[shibboleth/sp.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 ACLOCAL_AMFLAGS = -I .
4
5 include doxygen.am
6
7 MOSTLYCLEANFILES = $(DX_CLEANFILES)
8
9 WANT_SUBDIRS = @WANT_SUBDIRS@
10
11 SUBDIRS = $(WANT_SUBDIRS)
12
13 DIST_SUBDIRS = doc schemas configs shibsp shibd adfs util apache nsapi_shib fastcgi odbc-store selinux
14
15 if DX_COND_doc
16 all-local: shibboleth.spec pkginfo doxygen-doc
17 APIDOCS = doc/api
18 else
19 all-local: shibboleth.spec pkginfo
20 endif
21
22 install-data-hook:
23         rm -rf $(DESTDIR)$(datadir)/doc/@PACKAGE@/api
24         cp -r doc/api $(DESTDIR)$(datadir)/doc/@PACKAGE@
25
26 dist-hook:
27         rm -rf `find $(distdir)/isapi_shib -name .svn`
28         rm -rf `find $(distdir)/doc/api -name .svn`
29
30 shibboleth.spec: shibboleth.spec.in Makefile
31         rm -f $@.tmp
32         sed < $< > $@.tmp \
33             -e 's:@-VERSION-@:${VERSION}:'
34         mv $@.tmp $@
35
36 pkginfo: pkginfo.in Makefile
37         rm -f $@.tmp
38         sed < $< > $@.tmp \
39             -e 's:@-VERSION-@:${VERSION}:'
40         mv $@.tmp $@
41
42 EXTRA_DIST = $(DX_CONFIG) \
43     $(APIDOCS) \
44     isapi_shib \
45     Shibboleth.sln \
46     libtool.m4 \
47     doxygen.m4 \
48     acx_pthread.m4 \
49     depcomp \
50     config_win32.h \
51     shibboleth.spec.in \
52     shibboleth.spec \
53     pkginfo.in \
54     pkginfo \
55     depend \
56     postinstall
57
58 DISTCLEANFILES = shibboleth.spec pkginfo