X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=Makefile.am;fp=Makefile.am;h=6b98367acaf0e976ee2521876890bd1bff7c8128;hp=49750bbe69b0271763f4dcde9373aed3de9e5687;hb=9ed6a1981ce22b52d39e9c1e020122619b573e30;hpb=a27b2e12e26ad971ceb93847fcff70f851de268b diff --git a/Makefile.am b/Makefile.am index 49750bb..6b98367 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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)