Author: pfrields
Update of /cvs/docs/readme/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23623/readme/devel
Added Files:
Makefile
Log Message:
Add all content for new readme module
--- 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 = #el es it pl pt_BR pt ru sv zh_CN
FDPDIR = ${PWD}/../..
PKGNAME = ${DOCBASE}
# Set this locally
VERSION = 6
define XMLFILES_template
XMLFILES-${1}= ${1}/${DOCBASE}.xml
endef
#
########################################################################
include ../../docs-common/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'