Move building of packaging files into configure.
[shibboleth/cpp-opensaml.git] / Makefile.am
index 6b98367..84148a0 100644 (file)
@@ -13,19 +13,13 @@ dist-hook:
 
 SUBDIRS = doc schemas saml samltest samlsign
 
-GENFILES = opensaml.spec pkginfo Portfile
-
 if DX_COND_doc
-all-local: doxygen-doc $(GENFILES)
+all-local: doxygen-doc
 else
-all-local: $(GENFILES)
+all-local:
 endif
 
-$(GENFILES): %: %.in Makefile
-       rm -f $@.tmp
-       sed < $@.in > $@.tmp \
-           -e 's:@-VERSION-@:${VERSION}:'
-       mv $@.tmp $@
+GENFILES = opensaml.spec pkginfo Portfile
 
 EXTRA_DIST = $(DX_CONFIG) \
        cpp-opensaml2.sln \
@@ -38,5 +32,3 @@ EXTRA_DIST = $(DX_CONFIG) \
        $(GENFILES:%=%.in) \
        depend \
        postinstall
-
-DISTCLEANFILES = $(GENFILES)