release-notes/devel Makefile,1.50,1.51

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Thu Mar 22 17:28:07 UTC 2007


Author: pfrields

Update of /cvs/docs/release-notes/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8171

Modified Files:
	Makefile 
Log Message:
Update Makefile to package the OMF properly as well


Index: Makefile
===================================================================
RCS file: /cvs/docs/release-notes/devel/Makefile,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- Makefile	12 Mar 2007 01:10:49 -0000	1.50
+++ Makefile	22 Mar 2007 17:28:04 -0000	1.51
@@ -121,6 +121,45 @@
 $(foreach L,${LANGUAGES},$(eval $(call PKG_template,${L})))
 
 
+# This could be combined with OMFVAR_template later...
+define PKGOMFVAR_template
+$(foreach F,${OMFINFILES},$(eval PKGOMFFILES-${1}+=$(patsubst \
+	%.omf.in,$(if $(findstring ${PRI_LANG},${1}),%-C.omf,%-${1}.omf), \
+	${F})))
+showvars-debug::
+	@echo "PKGOMFFILES-${1}=\"${PKGOMFFILES-${1}}\""
+endef
+
+$(foreach L,${LANGUAGES},$(eval $(call PKGOMFVAR_template,${L})))
+
+define PKGOMF_DOC_template
+.PHONY: pkgomf-${1}-${2}
+ifeq "${2}" "${PRI_LANG}"
+pkgomf-${1}-${2}:: ${PKGNAME}-${VERSION}/${1}-C.omf
+${PKGNAME}-${VERSION}/${1}-C.omf:: ${2}/${1}.omf
+	mkdir -p ${PKGNAME}-${VERSION}
+	cp ${2}/${1}.omf $$@
+else
+pkgomf-${1}-${2}:: ${PKGNAME}-${VERSION}/${1}-${2}.omf
+${PKGNAME}-${VERSION}/${1}-${2}.omf:: ${2}/${1}.omf
+	mkdir -p ${PKGNAME}-${VERSION}
+	cp ${2}/${1}.omf $$@
+endif
+endef
+
+$(foreach L,${LANGUAGES}, \
+	$(foreach F,$(patsubst %.omf.in,%,${OMFINFILES}), \
+		$(eval $(call PKGOMF_DOC_template,${F},${L}))))
+
+define PKGOMF_template
+.PHONY: pkgomf-${1}
+pkgomf-${1}::  $(foreach F,${PKGOMFFILES-${1}},${PKGNAME}-${VERSION}/${F})
+$(eval PKGFILES-${1}+=$(foreach F,${PKGOMFFILES-${1}},${PKGNAME}-${VERSION}/${F}))
+endef
+
+$(foreach L,${LANGUAGES},$(eval $(call PKGOMF_template,${L})))
+
+
 .PHONY: release-pkg
 release-pkg:: ${PKGNAME}-${VERSION}.tar.gz
 ${PKGNAME}-${VERSION}.tar.gz:: $(foreach L,${LANGUAGES},${PKGFILES-${L}})




More information about the Fedora-docs-commits mailing list