home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
intercal.zip
/
doc
/
Makefile
< prev
next >
Wrap
Makefile
|
1996-06-12
|
1KB
|
44 lines
#
# Makefile for the Intercal documentation
#
# To see the Revised Manual, generate intercal.txt or intercal.ps
# To see the original INTERCAL-72 manual, generate original.txt or original.ps.
# We make two passes in order to resolve SETR/GETNH references.
# The sed hackery strips the trailing dots from level 1 section references.
all: intercal.ps intercal.txt original.ps original.txt
intercal.ps: intercal.mm
groff -dc=y -Tps -p -t -mgm intercal.mm >/dev/null
sed <intercal.refs.tmp -e '/hn \([0-9]*\)\.$$/s//hn \1/' >tmp.refs;
mv tmp.refs intercal.refs.tmp
groff -dc=y -Tps -p -t -mgm intercal.mm >intercal.ps
rm intercal.refs.qrf
original.ps: intercal.mm
groff -dc=n -Tps -p -t -mgm intercal.mm >/dev/null
sed <intercal.refs.tmp -e '/hn \([0-9]*\)\.$$/s//hn \1/' >tmp.refs;
mv tmp.refs intercal.refs.tmp
groff -dc=n -Tps -p -t -mgm intercal.mm >original.ps
rm intercal.refs.qrf
intercal.txt: intercal.mm
groff -dc=y -Tascii -p -t -mgm intercal.mm >/dev/null
sed <intercal.refs.tmp -e '/hn \([0-9]*\)\.$$/s//hn \1/' >tmp.refs;
mv tmp.refs intercal.refs.tmp
groff -dc=y -Tascii -p -t -mgm intercal.mm >intercal.txt
rm intercal.refs.qrf
original.txt: intercal.mm
groff -dc=n -Tascii -p -t -mgm intercal.mm >/dev/null
sed <intercal.refs.tmp -e '/hn \([0-9]*\)\.$$/s//hn \1/' >tmp.refs;
mv tmp.refs intercal.refs.tmp
groff -dc=n -Tascii -p -t -mgm intercal.mm >original.txt
rm intercal.refs.qrf
clean:
rm -f *.ps *.txt *.refs*