Updated to actually interpret version into VERSION variable.
Added 'version' target.
1 parent 71a3a42 commit ad36106952099b361c8c487cceace63ed634e600
@tundra tundra authored on 16 Jan 2005
Showing 1 changed file
View
7
makefile
# Build a release of tconfpy using 'make'
# $Id: makefile,v 1.103 2005/01/15 09:44:55 tundra Exp $
# $Id: makefile,v 1.104 2005/01/16 09:41:04 tundra Exp $
# Requires a modern 'make' like GNU.
 
 
PROGNAME=tconfpy
TESTPROG=test-tc
 
VERSION = `rlog -v ${PROGNAME}.py | python -c"import sys;x=sys.stdin.readlines();print x[0].split()[-1]"`
VERSION = $(shell rlog -v ${PROGNAME}.py | python -c"import sys;x=sys.stdin.readlines();print x[0].split()[-1]")
 
PREFIX = py-${PROGNAME}
DIR = ${PREFIX}-${VERSION}
TARBALL = ${DIR}.tar.gz
 
clean:
@rm -rf ${DOCFILES} ${PROGFILES} ${SUPPFILES} ${DIR} ${PREFIX}*
 
version:
@echo ${VERSION}
 
CHANGELOG.txt:
@rlog ${PROGNAME}.py >CHANGELOG.txt
 
docs: ${DOCFILES} ${SUPPFILES}