readme-live-image/devel Makefile,NONE,1.1

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Thu Aug 30 15:18:39 UTC 2007


Author: pfrields

Update of /cvs/docs/readme-live-image/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32735/readme-live-image/devel

Added Files:
	Makefile 
Log Message:
Add new readme-live-image module


--- NEW FILE Makefile ---
########################################################################
# Fedora Documentation Project Per-document Makefile
# License: GPL
# Copyright 2005,2006 Tommy Reynolds, MegaCoder.com
########################################################################
#
# Document-specific definitions.
#
DOCBASE        	= readme-live-image
PRI_LANG	= en_US
PKGNAME		= ${DOCBASE}
DOC_ENTITIES	= doc-entities

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}/${DOCBASE}-${1}.txt
$(eval PKGFILES-${1}+=${PKGNAME}-${VERSION}/${DOCBASE}-${1}.txt)
${PKGNAME}-${VERSION}/${DOCBASE}-${1}.txt:: ${DOCBASE}-${1}.txt
	mkdir -p ${PKGNAME}-${VERSION}
	cp ${DOCBASE}-${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'




More information about the Fedora-docs-commits mailing list