summaryrefslogtreecommitdiffstats
path: root/Doc/Makefile
blob: ed9f067d9374aa8cf394834978ebaef272d50717 (plain)
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
TBL=		tbl
TROFF=		ditroff
MS=		-ms
FUNNYTAB=	$$HOME/lib/funnytab
PREVIEW=	dpv -f $(FUNNYTAB)
PSDIT=		psdit

tut:		tut.dit
		$(PREVIEW) tut.dit

mod:		mod.dit
		$(PREVIEW) mod.dit

paper:		paper.dit
		$(PREVIEW) paper.dit

ref:		ref.dit
		$(PREVIEW) ref.dit

ALL=		tut.dit mod.dit paper.dit ref.dit

all:		$(ALL)

$(ALL):		macros.ms

clean:
		rm -f *.dit *.ps core @* ,* 

.SUFFIXES:	# Remove default suffixes

.SUFFIXES:	.ms .dit .ps

.ms.dit:
		$(TBL) $*.ms | $(TROFF) $(MS) >$@

.dit.ps:
		$(PSDIT) <$*.dit >$@

.ms.ps:
		$(TBL) $*.ms | $(TROFF) $(MS) | $(PSDIT) >$@