Start revisions of autotools material.
[shibboleth/cpp-xmltooling.git] / Makefile.am
index d56ad40..0c5a508 100644 (file)
@@ -1,32 +1,35 @@
 AUTOMAKE_OPTIONS = foreign
+ACLOCAL_AMFLAGS = -I m4
 
-ACLOCAL_AMFLAGS = -I .
+include doxygen.am
 
-EXTRA_DIST =
-       schemas \
-       cpp-xmltooling.sln \
-       libtool.m4 \
-       acx_pthread.m4 \
-       depcomp \
-       config_win32.h
+MOSTLYCLEANFILES = $(DX_CLEANFILES)
 
 dist-hook:
-       rm -rf `find $(distdir)/schemas -name Makefile`
-
-SUBDIRS = schemas xmltooling xmltoolingtest
-
-#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 @PACKAGE_NAME@ xmltoolingtest
+
+if DX_COND_doc
+all-local: doxygen-doc
+else
+all-local:
+endif
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = @PACKAGE_NAME@.pc
+
+GENFILES = @PACKAGE_NAME@.spec pkginfo Portfile
+
+EXTRA_DIST = $(DX_CONFIG) \
+        cpp-@PACKAGE_NAME@.sln \
+        m4/acx_pthread.m4 \
+        m4/acinclude.m4 \
+        m4/ax_create_pkgconfig_info.m4 \
+        m4/doxygen.m4 \
+        config_win32.h \
+        $(GENFILES) \
+        $(GENFILES:%=%.in) \
+        postinstall