release-notes/devel Makefile,1.12,1.13
Paul W. Frields (pfrields)
fedora-docs-commits at redhat.com
Sat Jul 15 15:54:35 UTC 2006
Author: pfrields
Update of /cvs/docs/release-notes/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11902
Modified Files:
Makefile
Log Message:
Use shell variable for name to make any transition easier later
("fedora-doc-" namespace?).
Index: Makefile
===================================================================
RCS file: /cvs/docs/release-notes/devel/Makefile,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- Makefile 15 Jul 2006 15:24:24 -0000 1.12
+++ Makefile 15 Jul 2006 15:54:32 -0000 1.13
@@ -13,6 +13,8 @@
# Special legalnotice for this document:
LEGALNOTICEBASE =legalnotice-relnotes
+# Special basename for packaging:
+PKGNAME =fedora-release-notes
########################################################################
# List each XML file of your document in the template below. Append the
# path to each file to the "XMLFILES-${1}" string. Use a backslash if you
@@ -109,38 +111,38 @@
#
# These rules are for use in packaging the release notes for an ISO
# spin. To do so, just run "make release-pkg" and out pops a shiny
-# tarball named "release-notes-<VER>.tar.gz where <VER> is the FC
+# tarball named "${PKGNAME}-<VER>.tar.gz where <VER> is the FC
# release (5.91, 6, etc.).
#
#########
define PKG_template
.PHONY: release-pkg-${1}
-release-pkg-${1}:: release-notes-${VERSION}/${DOCBASE}-${1}.html \
- release-notes-${VERSION}/${DOCBASE}-${1}.txt \
- release-notes-${VERSION}/README-${1}.txt
+release-pkg-${1}:: ${PKGNAME}-${VERSION}/${DOCBASE}-${1}.html \
+ ${PKGNAME}-${VERSION}/${DOCBASE}-${1}.txt \
+ ${PKGNAME}-${VERSION}/README-${1}.txt
-release-notes-${VERSION}/${DOCBASE}-${1}.html:: ${DOCBASE}-${1}.html
- mkdir -p release-notes-${VERSION}
+${PKGNAME}-${VERSION}/${DOCBASE}-${1}.html:: ${DOCBASE}-${1}.html
+ mkdir -p ${PKGNAME}-${VERSION}
cp ${DOCBASE}-${1}.html $$@
-release-notes-${VERSION}/${DOCBASE}-${1}.txt:: ${DOCBASE}-${1}.txt
- mkdir -p release-notes-${VERSION}
+${PKGNAME}-${VERSION}/${DOCBASE}-${1}.txt:: ${DOCBASE}-${1}.txt
+ mkdir -p ${PKGNAME}-${VERSION}
cp ${DOCBASE}-${1}.txt $$@
-release-notes-${VERSION}/README-${1}.txt:: README-${1}.txt
- mkdir -p release-notes-${VERSION}
+${PKGNAME}-${VERSION}/README-${1}.txt:: README-${1}.txt
+ mkdir -p ${PKGNAME}-${VERSION}
cp README-${1}.txt $$@
ifeq "${1}" "en_US"
-release-pkg-${1}:: release-notes-${VERSION}/about/C/about-fedora.xml
-release-notes-${VERSION}/about/C/about-fedora.xml:: xml-${1}
- mkdir -p release-notes-${VERSION}/about/C
+release-pkg-${1}:: ${PKGNAME}-${VERSION}/about/C/about-fedora.xml
+${PKGNAME}-${VERSION}/about/C/about-fedora.xml:: xml-${1}
+ mkdir -p ${PKGNAME}-${VERSION}/about/C
cp ${1}/about-fedora.xml $$@
else
-release-pkg-${1}:: release-notes-${VERSION}/about/{1}/about-fedora.xml
-release-notes-${VERSION}/about/C/about-fedora.xml:: xml-${1}
- mkdir -p release-notes-${VERSION}/about/${1}
+release-pkg-${1}:: ${PKGNAME}-${VERSION}/about/{1}/about-fedora.xml
+${PKGNAME}-${VERSION}/about/C/about-fedora.xml:: xml-${1}
+ mkdir -p ${PKGNAME}-${VERSION}/about/${1}
cp ${1}/about-fedora.xml $$@
endif
@@ -149,10 +151,10 @@
$(foreach L,${LANGUAGES},$(eval $(call PKG_template,${L})))
.PHONY: release-pkg
-release-pkg:: release-notes-${VERSION}.tar.gz
-release-notes-${VERSION}.tar.gz:: $(foreach LANG,${LANGUAGES},release-pkg-${LANG})
- tar czf release-notes-${VERSION}.tar.gz release-notes-${VERSION}
+release-pkg:: ${PKGNAME}-${VERSION}.tar.gz
+${PKGNAME}-${VERSION}.tar.gz:: $(foreach LANG,${LANGUAGES},release-pkg-${LANG})
+ tar czf ${PKGNAME}-${VERSION}.tar.gz ${PKGNAME}-${VERSION}
clean::
- ${RM} -rf release-notes-${VERSION}.tar.gz
- ${RM} -rf release-notes-${VERSION}
+ ${RM} -rf ${PKGNAME}-${VERSION}.tar.gz
+ ${RM} -rf ${PKGNAME}-${VERSION}
More information about the Fedora-docs-commits
mailing list