Makefile and specfile changes for SuSE.
[shibboleth/cpp-opensaml.git] / Makefile.am
index 49750bb..6b98367 100644 (file)
@@ -13,23 +13,15 @@ dist-hook:
 
 SUBDIRS = doc schemas saml samltest samlsign
 
+GENFILES = opensaml.spec pkginfo Portfile
+
 if DX_COND_doc
-all-local: opensaml.spec pkginfo doxygen-doc
+all-local: doxygen-doc $(GENFILES)
 else
-all-local: opensaml.spec pkginfo
+all-local: $(GENFILES)
 endif
 
-install-data-hook:
-       rm -rf $(DESTDIR)$(datadir)/doc/@PACKAGE@/api
-       cp -r doc/api $(DESTDIR)$(datadir)/doc/@PACKAGE@
-
-opensaml.spec: opensaml.spec.in Makefile
-       rm -f $@.tmp
-       sed < $@.in > $@.tmp \
-           -e 's:@-VERSION-@:${VERSION}:'
-       mv $@.tmp $@
-
-pkginfo: pkginfo.in Makefile
+$(GENFILES): %: %.in Makefile
        rm -f $@.tmp
        sed < $@.in > $@.tmp \
            -e 's:@-VERSION-@:${VERSION}:'
@@ -42,11 +34,9 @@ EXTRA_DIST = $(DX_CONFIG) \
        acx_pthread.m4 \
        depcomp \
        config_win32.h \
-       opensaml.spec.in \
-       opensaml.spec \
-       pkginfo.in \
-       pkginfo \
+       $(GENFILES) \
+       $(GENFILES:%=%.in) \
        depend \
        postinstall
 
-DISTCLEANFILES = opensaml.spec pkginfo
+DISTCLEANFILES = $(GENFILES)