Remove nonworking checksum generation.
[shibboleth/cpp-xmltooling.git] / Makefile.am
index ca5e29a..04687d3 100644 (file)
@@ -6,52 +6,42 @@ 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
+SUBDIRS = doc schemas xmltooling xmltoolingtest
 
-all-local: xmltooling.spec pkginfo
+GENFILES = xmltooling.spec pkginfo Portfile
 
 if DX_COND_doc
-all-local: doxygen-doc
-
-install-data-hook:
-       rm -rf $(prefix)/doc/@PACKAGE@/api
-       cp -r doc/api $(prefix)/doc/@PACKAGE@
+all-local: doxygen-doc $(GENFILES)
+else
+all-local: $(GENFILES)
 endif
 
-xmltooling.spec: xmltooling.spec.in Makefile
-       rm -f $@.tmp
-       sed < $< > $@.tmp \
-           -e 's:@-VERSION-@:${VERSION}:'
-       mv $@.tmp $@
+install-data-hook:
+       rm -rf $(DESTDIR)$(datadir)/doc/@PACKAGE@/api
+       cp -r doc/api $(DESTDIR)$(datadir)/doc/@PACKAGE@
 
-pkginfo: pkginfo.in Makefile
+$(GENFILES): %: %.in Makefile
        rm -f $@.tmp
-       sed < $< > $@.tmp \
+       sed < $@.in > $@.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
+
+DISTCLEANFILES = $(GENFILES)