Author: pfrields
Update of /cvs/docs/readme/F-7 In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22657/F-7
Added Files: Makefile Log Message: Branch F-7 as of release date 2007-05-31
--- NEW FILE Makefile --- ######################################################################## # Fedora Documentation Project Per-document Makefile # License: GPL # Copyright 2005,2006 Tommy Reynolds, MegaCoder.com ######################################################################## # # Document-specific definitions. # DOCBASE = README PRI_LANG = en_US OTHERS = bn_IN ca el es fi fr it ja nl pa pl pt_BR pt sr sv uk zh_CN # cs de gu hr ml ms nb ru ta zh_TW PKGNAME = ${DOCBASE}
# Set this locally VERSION = 7.0.0
define XMLFILES_template XMLFILES-${1}= ${1}/${DOCBASE}.xml endef
# ######################################################################## define find-makefile-common for d in docs-common ../docs-common ../../docs-common; do \ if [ -f $$d/Makefile.common ]; then echo "$$d/Makefile.common"; break; fi; done endef include $(shell $(find-makefile-common)) ######################################################################## # # If you want to add additional steps to any of the # targets defined in "Makefile.common", be sure to use # a double-colon in your rule here. For example, to # print the message "FINISHED AT LAST" after building # the HTML document version, uncomment the following # line: #${DOCBASE}-en/index.html:: # echo FINISHED AT LAST ########################################################################
# This simply rides on the normal "make txt" target define PKGTXT_template .PHONY: pkgtxt-${1} pkgtxt-${1}:: ${PKGNAME}-${VERSION}/README-${1}.txt $(eval PKGFILES-${1}+=${PKGNAME}-${VERSION}/README-${1}.txt) ${PKGNAME}-${VERSION}/README-${1}.txt:: README-${1}.txt mkdir -p ${PKGNAME}-${VERSION} cp README-${1}.txt $$@ endef
$(foreach L,${LANGUAGES},$(eval $(call PKGTXT_template,${L})))
.PHONY: release-pkg release-pkg:: ${PKGNAME}-${VERSION}.tar.gz ${PKGNAME}-${VERSION}.tar.gz:: $(foreach L,${LANGUAGES},${PKGFILES-${L}}) tar czf ${PKGNAME}-${VERSION}.tar.gz ${PKGNAME}-${VERSION}
clean:: ${RM} -rf ${PKGNAME}-${VERSION}.tar.gz ${RM} -rf ${PKGNAME}-${VERSION}
help:: @printf ${TFMT} 'release-pkg' 'Make a tarball suitable for import to Core'