Start to clean up Unix build.
[shibboleth/cpp-sp.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 ACLOCAL_AMFLAGS = -I .
4
5 EXTRA_DIST = \
6         isapi_shib isapi_shib_gui \
7         Shibboleth.sln libtool.m4 acx_pthread.m4 depcomp \
8         config_win32.h shibboleth.spec.in shibboleth.spec pkginfo.in pkginfo checkinstall
9
10 dist-hook:
11         rm -rf `find $(distdir)/configs -name Makefile`
12
13 WANT_SUBDIRS = @WANT_SUBDIRS@
14
15 SUBDIRS = $(WANT_SUBDIRS)
16
17 DIST_SUBDIRS = doc schemas configs shibsp shibd util apache odbc-store nsapi_shib selinux
18
19 all-local: shibboleth.spec pkginfo
20
21 shibboleth.spec: shibboleth.spec.in Makefile
22         rm -f $@.tmp
23         sed < $< > $@.tmp \
24             -e 's:@-VERSION-@:${VERSION}:'
25         mv $@.tmp $@
26
27 pkginfo: pkginfo.in Makefile
28         rm -f $@.tmp
29         sed < $< > $@.tmp \
30             -e 's:@-VERSION-@:${VERSION}:'
31         mv $@.tmp $@
32
33 DISTCLEANFILES = shibboleth.spec pkginfo