ACLOCAL_AMFLAGS = -I .
-EXTRA_DIST =
- schemas \
- cpp-xmltooling.sln \
- libtool.m4 \
- acx_pthread.m4 \
- depcomp \
- config_win32.h
+include doxygen.am
+
+MOSTLYCLEANFILES = $(DX_CLEANFILES)
dist-hook:
- rm -rf `find $(distdir)/schemas -name Makefile`
-
-SUBDIRS = schemas xmltooling
-
-#all-local: opensaml.spec pkginfo
-#
-#opensaml.spec: opensaml.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 = opensaml.spec pkginfo
+ rm -rf `find $(distdir)/xmltoolingtest/data -name .svn`
+ rm -rf `find $(distdir)/doc/api -name .svn`
+
+
+SUBDIRS = doc schemas xmltooling xmltoolingtest
+
+GENFILES = xmltooling.spec pkginfo Portfile
+
+if DX_COND_doc
+all-local: doxygen-doc $(GENFILES)
+else
+all-local: $(GENFILES)
+endif
+
+$(GENFILES): %: %.in Makefile
+ rm -f $@.tmp
+ sed < $@.in > $@.tmp \
+ -e 's:@-VERSION-@:${VERSION}:'
+ mv $@.tmp $@
+
+EXTRA_DIST = $(DX_CONFIG) \
+ cpp-xmltooling.sln \
+ acx_pthread.m4 \
+ acinclude.m4 \
+ libtool.m4 \
+ doxygen.m4 \
+ depcomp \
+ config_win32.h \
+ $(GENFILES) \
+ $(GENFILES:%=%.in) \
+ depend \
+ postinstall
+
+DISTCLEANFILES = $(GENFILES)