diff --git a/makefile b/makefile index b37d044..fa0022c 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ # Build a release of 'pystat' using 'make' -# $Id: makefile,v 1.100 2010/02/18 00:58:55 tundra Exp $ +# $Id: makefile,v 1.101 2012/06/09 19:18:49 tundra Exp $ # Requires a modern 'make' like GNU. @@ -36,7 +36,7 @@ HEADER2 = "----------------------------------------------------------------------" TARBALL = ${DIR}.tar.gz TMPFILE = tmpfile -VERSION = $(shell rlog -v ${PROGNAME}.py | cut -f 2 -d " ")${EARLY} +VERSION = $(shell cvs log ${PROGNAME}.py | grep ^head\: | cut -f2 -d " ")${EARLY} ##### @@ -106,17 +106,16 @@ # Actual Build Rules ##### +FORCE: -CHANGELOG.txt: - @rlog ${PROGNAME}.py >CHANGELOG.txt +CHANGELOG.txt: FORCE + @cvs log ${PROGNAME}.py >CHANGELOG.txt -WHATSNEW.txt: - @co -l $@ +WHATSNEW.txt: FORCE @printf "%s\n%s\n\n" ${HEADER1} ${HEADER2} | cat - $@ >${TMPFILE} @mv ${TMPFILE} $@ - @emacs $@ - @ci -m${HEADER1} $@ - @co $@ + @emacs -nw $@ + @cvs commit -m${HEADER1} $@ clean: @rm -rf ${DIR} ${DOCFILES} ${PORTNAME} ${PROGFILES} ${DOCSOURCES} ${TARBALL} ${TMPFILE} \ @@ -135,6 +134,7 @@ @for f in `for f in ${DOCFILES} ${PROGFILES} ${DOCSOURCES};do echo $$f;done | sort`; do mv -v $$f ${DIR};done @tar -czvf ${TARBALL} ${DIR} @rm -rf ${DIR} + @mkdir Releases @mv ${DIR}.tar.gz Releases version: