File: Makefile

package info (click to toggle)
intercal 0.20-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 928 kB
  • ctags: 269
  • sloc: ansic: 2,182; lex: 380; makefile: 276; yacc: 245; lisp: 138
file content (47 lines) | stat: -rw-r--r-- 1,558 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# 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.

x.txt: x.mm
	groff -dc=y -Tascii -p -t -mm x.mm >x.txt


all: intercal.ps intercal.txt original.ps original.txt

intercal.ps: intercal.mm
	groff -dc=y -Tps    -p -t -mm intercal.mm > intercal.refs.tmp
	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 -mm intercal.mm >intercal.ps
	-rm intercal.refs.qrf

original.ps: intercal.mm
	groff -dc=n -Tps    -p -t -mm intercal.mm > intercal.refs.tmp
	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 -mm intercal.mm >original.ps
	-rm intercal.refs.qrf

intercal.txt: intercal.mm
	groff -dc=y -Tascii -p -t -mm intercal.mm > intercal.refs.tmp
	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 -mm intercal.mm >intercal.txt
	-rm intercal.refs.qrf

original.txt: intercal.mm
	groff -dc=n -Tascii -p -t -mm intercal.mm > intercal.refs.tmp
	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 -mm intercal.mm >original.txt
	-rm intercal.refs.qrf

clean:
	rm -f *.ps *.txt *.refs*