Template replacement engine ported from Shib, added conditional nesting.
[shibboleth/cpp-xmltooling.git] / Makefile.am
index ba80dca..858ad49 100644 (file)
@@ -2,31 +2,52 @@ AUTOMAKE_OPTIONS = foreign
 
 ACLOCAL_AMFLAGS = -I .
 
-EXTRA_DIST =
+include doxygen.am
+
+MOSTLYCLEANFILES = $(DX_CLEANFILES)
+
+EXTRA_DIST = $(DX_CONFIG) \
+       doc \
        schemas \
        cpp-xmltooling.sln \
-       libtool.m4 \
        acx_pthread.m4 \
+       acinclude.m4 \
+       libtool.m4 \
+       doxygen.m4 \
        depcomp \
-       config_win32.h
+       config_win32.h \
+       xmltooling.spec.in \
+       xmltooling.spec \
+       pkginfo.in \
+       pkginfo \
+       checkinstall
 
 dist-hook:
+       rm -rf `find $(distdir)/xmltoolingtest/data -name .svn`
+       rm -rf `find $(distdir)/schemas -name .svn`
        rm -rf `find $(distdir)/schemas -name Makefile`
+       rm -rf `find $(distdir)/doc -name .svn`
+       rm -rf `find $(distdir)/doc -name Makefile`
+
+
+SUBDIRS = schemas xmltooling xmltoolingtest
+
+all-local: xmltooling.spec pkginfo
+
+if DX_COND_doc
+all-local: doxygen-doc
+endif
+
+xmltooling.spec: xmltooling.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 $@
 
-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
+DISTCLEANFILES = xmltooling.spec pkginfo