Set fourth file version digit to signify rebuild.
[shibboleth/cpp-xmltooling.git] / Makefile.am
index 2afd6ff..01dbcc1 100644 (file)
@@ -1,47 +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)
 
-EXTRA_DIST = $(DX_CONFIG) \
-       doc \
-       schemas \
-       cpp-xmltooling.sln \
-       libtool.m4 \
-       doxygen.m4 \
-       depcomp \
-       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`
+DISTCLEANFILES = \
+       @PACKAGE_NAME@.pc \
+       @PACKAGE_NAME@.pc.in \
+       @PACKAGE_NAME@-uninstalled.pc \
+       @PACKAGE_NAME@-uninstalled.sh
 
+SUBDIRS = doc schemas @PACKAGE_NAME@ xmltoolingtest
 
-SUBDIRS = schemas xmltooling xmltoolingtest
+if DX_COND_doc
+all-local: doxygen-doc
+else
+all-local:
+endif
 
-all-local: xmltooling.spec pkginfo doxygen-doc
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = @PACKAGE_NAME@.pc
 
-xmltooling.spec: xmltooling.spec.in Makefile
-       rm -f $@.tmp
-       sed < $< > $@.tmp \
-           -e 's:@-VERSION-@:${VERSION}:'
-       mv $@.tmp $@
+GENFILES = @PACKAGE_NAME@.spec
 
-pkginfo: pkginfo.in Makefile
-       rm -f $@.tmp
-       sed < $< > $@.tmp \
-           -e 's:@-VERSION-@:${VERSION}:'
-       mv $@.tmp $@
-
-DISTCLEANFILES = xmltooling.spec pkginfo
+EXTRA_DIST = $(DX_CONFIG) \
+       cpp-@PACKAGE_NAME@.sln \
+       config_win32.h \
+       $(GENFILES) \
+       $(GENFILES:%=%.in)