Newer
Older
twander / makefile
@tundra tundra on 11 Jan 2005 1 KB Initial cut.
# Build a release of twander using 'make'
# $Id: makefile,v 1.100 2005/01/11 08:30:47 tundra Exp $

COLOR=
#COLOR=--color

PROGFILE=twander.py
MANPAGE=twander.1
SUPPFILES=Makefile twander-license.txt .twander READ-1ST.txt WHATSNEW.txt
DOCFILES=CHANGELOG.txt twander.html twander.pdf twander.ps twander.py.ps twander.txt

# Define the baseline files

${SUPPFILES}:
	co $*

twander.py:
	co twander.py
	chmod 755 twander.py

twander.1:
	co twander.1


# Pretty Print The Source Code

twander.py.ps: twander.py
	enscript -Epython -fCourier8 -i2 -L77 -C --mark-wrapped-lines=arrow ${COLOR}  -ptwander.py.ps twander.py


# Build Documentation

CHANGELOG.txt:
	rlog twander.py >CHANGELOG.txt

twander.html: twander.1
	manserver twander.1 >twander.html

twander.ps: twander.1
	groff -man -Tps twander.1 >twander.ps

twander.pdf: twander.ps
	gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=twander.pdf twander.ps

twander.txt: twander.1
	groff -man -Tascii twander.1 | col -xb >twander.txt

docs: ${DOCFILES} ${SUPPFILES}
	chmod 644 ${DOCFILES} ${SUPFILES}
	gzip *.1
	chmod 644 *.gz *.txt







# Extract Files From RCS

#co -r$1 $PROGFILE

#
## Build And Save The Release
#
#mv $PROGFILE $SUPPFILES $DOCFILES $DIR
#mv *.gz $DIR

#flip -vm $DIR/*txt
#tar -czvf $DIR.tar.gz $DIR
#mv $DIR.tar.gz Releases
#
# Remove Working Directory
#rm -rf $DIR