Makefile and specfile changes for SuSE.
[shibboleth/cpp-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 memcache-store selinux
14
15 GENFILES = shibboleth.spec pkginfo Portfile
16
17 if DX_COND_doc
18 all-local: doxygen-doc $(GENFILES)
19 else
20 all-local: $(GENFILES)
21 endif
22
23 dist-hook:
24         rm -rf `find $(distdir)/isapi_shib -name .svn`
25         rm -rf `find $(distdir)/doc/api -name .svn`
26
27 $(GENFILES): %: %.in Makefile
28         rm -f $@.tmp
29         sed < $@.in > $@.tmp \
30             -e 's:@-VERSION-@:${VERSION}:'
31         mv $@.tmp $@
32
33
34 EXTRA_DIST = $(DX_CONFIG) \
35     isapi_shib \
36     Shibboleth.sln \
37     libtool.m4 \
38     doxygen.m4 \
39     acx_pthread.m4 \
40     depcomp \
41     config_win32.h \
42     $(GENFILES) \
43     $(GENFILES:%=%.in) \
44     depend \
45     postinstall
46
47 DISTCLEANFILES = $(GENFILES)