-EXTRA_DIST = \
- schemas/cs-sstc-schema-assertion-01.xsd \
- schemas/cs-sstc-schema-protocol-01.xsd \
- schemas/soap-envelope.xsd \
- schemas/xmldsig-core-schema.xsd \
- schemas/xmldsig-filter2.xsd \
- schemas/xml.xsd \
- schemas/shibboleth.xsd \
- schemas/eduPerson.xsd \
- configs/accessError.html \
- configs/shar.logger \
- configs/shireError.html \
- configs/apache.config \
- configs/shibboleth.ini \
- configs/ca-bundle.crt \
- configs/shibboleth.logger \
- configs/rmError.html \
- configs/shire.logger \
- configs/AAP.xml \
- libtool.m4 acx_pthread.m4 acx_rpctest.m4
-
-SUBDIRS = @WANT_SUBDIRS@
+include doxygen.am
+
+MOSTLYCLEANFILES = $(DX_CLEANFILES)
+
+WANT_SUBDIRS = @WANT_SUBDIRS@
+
+SUBDIRS = $(WANT_SUBDIRS)
+
+DIST_SUBDIRS = doc schemas configs shibsp shibd adfs util apache nsapi_shib fastcgi odbc-store selinux
+
+if DX_COND_doc
+all-local: shibboleth.spec pkginfo doxygen-doc
+APIDOCS = doc/api
+else
+all-local: shibboleth.spec pkginfo
+endif
+
+install-data-hook:
+ rm -rf $(DESTDIR)$(datadir)/doc/@PACKAGE@/api
+ cp -r doc/api $(DESTDIR)$(datadir)/doc/@PACKAGE@