release-notes/devel Makefile,1.14,1.15

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Tue Jul 18 20:12:51 UTC 2006


Author: pfrields

Update of /cvs/docs/release-notes/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14332

Modified Files:
	Makefile 
Log Message:
Clean up targets and add extra SRPM target


Index: Makefile
===================================================================
RCS file: /cvs/docs/release-notes/devel/Makefile,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- Makefile	15 Jul 2006 16:36:25 -0000	1.14
+++ Makefile	18 Jul 2006 20:12:49 -0000	1.15
@@ -140,7 +140,7 @@
 	mkdir -p ${PKGNAME}-${VERSION}/about/C
 	cp ${1}/about-fedora.xml $$@
 else
-release-pkg-${1}::  ${PKGNAME}-${VERSION}/about/{1}/about-fedora.xml
+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 $$@
@@ -151,8 +151,11 @@
 $(foreach L,${LANGUAGES},$(eval $(call PKG_template,${L})))
 
 .PHONY: release-pkg
-release-pkg:: ${PKGNAME}-${VERSION}.tar.gz
+release-pkg:: clean ${PKGNAME}-${VERSION}.tar.gz
 ${PKGNAME}-${VERSION}.tar.gz::  $(foreach LANG,${LANGUAGES},release-pkg-${LANG})
+	cp -a --parents css/*css fedora.css img/*png stylesheet-images/*png \
+		${PKGNAME}-${VERSION}
+	cp -a about-* ${PKGNAME}-${VERSION}
 	tar czf ${PKGNAME}-${VERSION}.tar.gz ${PKGNAME}-${VERSION}
 
 clean::
@@ -161,3 +164,21 @@
 
 help::
 	@printf ${TFMT} 'release-pkg' 'Make a tarball suitable for import to Core'
+
+
+RPMRELEASE=$(shell rpm -q --qf '%{RELEASE}\n' --specfile ${PKGNAME}.spec)
+.PHONY: release-srpm
+release-srpm:: ${PKGNAME}-${VERSION}-${RPMRELEASE}.src.rpm
+${PKGNAME}-${VERSION}-${RPMRELEASE}.src.rpm::  ${PKGNAME}-${VERSION}.tar.gz
+	rpmbuild -bs --define "_topdir ${PWD}"				\
+		--define "_specdir ${PWD}"				\
+		--define "_sourcedir ${PWD}"				\
+		--define "_srcrpmdir ${PWD}"				\
+		--define "_rpmdir ${PWD}"				\
+		${PKGNAME}.spec
+
+clean::
+	${RM} -rf ${PKGNAME}-${VERSION}-${RPMRELEASE}.src.rpm
+
+help::
+	@printf ${TFMT} 'release-srpm' 'Make a SRPM suitable for import to Core'




More information about the Fedora-docs-commits mailing list