Move building of packaging files into configure.
[shibboleth/cpp-xmltooling.git] / Makefile.am
index 858ad49..2f06a8d 100644 (file)
@@ -6,48 +6,30 @@ include doxygen.am
 
 MOSTLYCLEANFILES = $(DX_CLEANFILES)
 
-EXTRA_DIST = $(DX_CONFIG) \
-       doc \
-       schemas \
-       cpp-xmltooling.sln \
-       acx_pthread.m4 \
-       acinclude.m4 \
-       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`
-
+       rm -rf `find $(distdir)/doc/api -name .svn`
 
-SUBDIRS = schemas xmltooling xmltoolingtest
 
-all-local: xmltooling.spec pkginfo
+SUBDIRS = doc schemas xmltooling xmltoolingtest
 
 if DX_COND_doc
 all-local: doxygen-doc
+else
+all-local:
 endif
 
-xmltooling.spec: xmltooling.spec.in Makefile
-       rm -f $@.tmp
-       sed < $< > $@.tmp \
-           -e 's:@-VERSION-@:${VERSION}:'
-       mv $@.tmp $@
+GENFILES = xmltooling.spec pkginfo Portfile
 
-pkginfo: pkginfo.in Makefile
-       rm -f $@.tmp
-       sed < $< > $@.tmp \
-           -e 's:@-VERSION-@:${VERSION}:'
-       mv $@.tmp $@
-
-DISTCLEANFILES = xmltooling.spec pkginfo
+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