######################################################################## # Fedora Documentation Project Per-document Makefile # License: GPL # Copyright 2005,2006 Tommy Reynolds, MegaCoder.com ######################################################################## # # Document-specific definitions. # DOCBASE = README-BURNING-ISOS PRI_LANG = en_US PKGNAME = ${DOCBASE} DOC_ENTITIES = doc-entities # Use the lowercase version (module name) for POT POTBASE =readme-burning-isos 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-BURNING-ISOS-${1}.txt $(eval PKGFILES-${1}+=${PKGNAME}-${VERSION}/README-BURNING-ISOS-${1}.txt) ${PKGNAME}-${VERSION}/README-BURNING-ISOS-${1}.txt:: README-BURNING-ISOS-${1}.txt mkdir -p ${PKGNAME}-${VERSION} cp README-BURNING-ISOS-${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'