diff --git a/makefile b/makefile index caf5a4a..09c834d 100644 --- a/makefile +++ b/makefile @@ -1,14 +1,15 @@ # Build a release of tconfpy using 'make' -# $Id: makefile,v 1.102 2005/01/15 09:12:45 tundra Exp $ +# $Id: makefile,v 1.103 2005/01/15 09:44:55 tundra Exp $ # Requires a modern 'make' like GNU. -# Syntax is: make target VER=version-number PROGNAME=tconfpy TESTPROG=test-tc +VERSION = `rlog -v ${PROGNAME}.py | python -c"import sys;x=sys.stdin.readlines();print x[0].split()[-1]"` + PREFIX = py-${PROGNAME} -DIR = ${PREFIX}-${VER} +DIR = ${PREFIX}-${VERSION} TARBALL = ${DIR}.tar.gz PROGFILES = ${PROGNAME}.py ${TESTPROG}.py @@ -76,7 +77,7 @@ @mkdir ${DIR} @mv ${DOCFILES} ${PROGFILES} ${SUPPFILES} ${DIR} @tar -czvf ${DIR}.tar.gz ${DIR} -# @rm -rf ${DIR} + @rm -rf ${DIR} # @mv ${DIR}.tar.gz Releases