more portably GSS library detection
[shibboleth/sp.git] / Makefile.am
index 1355b21..cc2eee8 100644 (file)
@@ -1,42 +1,46 @@
 AUTOMAKE_OPTIONS = foreign
+ACLOCAL_AMFLAGS = -I m4
 
-ACLOCAL_AMFLAGS = -I .
+include doxygen.am
 
-EXTRA_DIST = \
-       schemas doc isapi_shib isapi_shib_gui \
-       Shibboleth.sln libtool.m4 acx_pthread.m4 acx_rpctest.m4 depcomp \
-       config_win32.h posttest/posttest.vcproj shibtest/shibtest.vcproj \
-       shibboleth.spec.in shibboleth.spec pkginfo.in pkginfo checkinstall
-
-dist-hook:
-       rm -rf `find $(distdir)/schemas -name CVS`
-       rm -rf `find $(distdir)/schemas -name Makefile`
-       rm -rf `find $(distdir)/configs -name CVS`
-       rm -rf `find $(distdir)/configs -name Makefile`
-       rm -rf `find $(distdir)/doc -name CVS`
-       rm -rf `find $(distdir)/doc -name Makefile`
-       rm -rf `find $(distdir)/isapi_shib -name CVS`
+MOSTLYCLEANFILES = $(DX_CLEANFILES)
 
 WANT_SUBDIRS = @WANT_SUBDIRS@
 
 SUBDIRS = $(WANT_SUBDIRS)
 
-DIST_SUBDIRS = doc oncrpc shib schemas configs shib-target shar test \
-       apache siterefresh odbc_ccache shib-mysql-ccache xmlproviders \
-       nsapi_shib selinux
-
-all-local: shibboleth.spec pkginfo
+DIST_SUBDIRS = \
+       doc \
+       schemas \
+       configs \
+       shibsp \
+       shibd \
+       adfs \
+       plugins \
+       util \
+       apache \
+       nsapi_shib \
+       fastcgi \
+       odbc-store \
+       memcache-store \
+       selinux
+
+if DX_COND_doc
+all-local: doxygen-doc
+else
+all-local:
+endif
 
-shibboleth.spec: shibboleth.spec.in Makefile
-       rm -f $@.tmp
-       sed < $< > $@.tmp \
-           -e 's:@-VERSION-@:${VERSION}:'
-       mv $@.tmp $@
-
-pkginfo: pkginfo.in Makefile
-       rm -f $@.tmp
-       sed < $< > $@.tmp \
-           -e 's:@-VERSION-@:${VERSION}:'
-       mv $@.tmp $@
-
-DISTCLEANFILES = shibboleth.spec pkginfo
+dist-hook:
+       rm -rf `find $(distdir)/isapi_shib -name .svn`
+       rm -rf `find $(distdir)/doc/api -name .svn`
+
+GENFILES = @PACKAGE_NAME@.spec pkginfo Portfile
+
+EXTRA_DIST = $(DX_CONFIG) \
+    isapi_shib \
+    Shibboleth.sln \
+    config_win32.h \
+    $(GENFILES) \
+    $(GENFILES:%=%.in) \
+    postinstall