Set fourth file version digit to signify rebuild.
[shibboleth/cpp-xmltooling.git] / Makefile.am
index 18e5312..01dbcc1 100644 (file)
@@ -1,55 +1,31 @@
-AUTOMAKE_OPTIONS = foreign
-
-ACLOCAL_AMFLAGS = -I .
+AUTOMAKE_OPTIONS = foreign dist-zip dist-bzip2
+ACLOCAL_AMFLAGS = -I m4
 
 include doxygen.am
 
 MOSTLYCLEANFILES = $(DX_CLEANFILES)
 
-dist-hook:
-       rm -rf `find $(distdir)/xmltoolingtest/data -name .svn`
-       rm -rf `find $(distdir)/doc/api -name .svn`
-
+DISTCLEANFILES = \
+       @PACKAGE_NAME@.pc \
+       @PACKAGE_NAME@.pc.in \
+       @PACKAGE_NAME@-uninstalled.pc \
+       @PACKAGE_NAME@-uninstalled.sh
 
-SUBDIRS = doc schemas xmltooling xmltoolingtest
+SUBDIRS = doc schemas @PACKAGE_NAME@ xmltoolingtest
 
 if DX_COND_doc
-all-local: doxygen-doc xmltooling.spec pkginfo
-APIDOCS = doc/api
+all-local: doxygen-doc
 else
-all-local: xmltooling.spec pkginfo
+all-local:
 endif
 
-install-data-hook:
-       rm -rf $(DESTDIR)/$(datadir)/doc/@PACKAGE@/api
-       cp -r doc/api $(DESTDIR)/$(datadir)/doc/@PACKAGE@
-
-xmltooling.spec: xmltooling.spec.in Makefile
-       rm -f $@.tmp
-       sed < $@.in > $@.tmp \
-           -e 's:@-VERSION-@:${VERSION}:'
-       mv $@.tmp $@
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = @PACKAGE_NAME@.pc
 
-pkginfo: pkginfo.in Makefile
-       rm -f $@.tmp
-       sed < $@.in > $@.tmp \
-           -e 's:@-VERSION-@:${VERSION}:'
-       mv $@.tmp $@
+GENFILES = @PACKAGE_NAME@.spec
 
 EXTRA_DIST = $(DX_CONFIG) \
-        $(APIDOCS) \
-        cpp-xmltooling.sln \
-        acx_pthread.m4 \
-        acinclude.m4 \
-        libtool.m4 \
-        doxygen.m4 \
-        depcomp \
-        config_win32.h \
-        xmltooling.spec.in \
-        xmltooling.spec \
-        pkginfo.in \
-        pkginfo \
-        depend \
-        postinstall
-
-DISTCLEANFILES = xmltooling.spec pkginfo
+       cpp-@PACKAGE_NAME@.sln \
+       config_win32.h \
+       $(GENFILES) \
+       $(GENFILES:%=%.in)