docs/*/Makefile: create html subdir if needed
[nvi.git] / docs / vitut / Makefile
blobaa6ae221135c2156b7d6179f70a18800040fe39e
1 # $Id: Makefile,v 8.10 2001/01/28 15:50:08 skimo Exp $ (Berkeley) $Date: 2001/01/28 15:50:08 $
3 MACROS= -ms
4 ROFF= groff
5 TBL= tbl
7 all: vitut.ps summary.ps viapwh.ps ../html/vitut.html ../html/vi-summary.html \
8 ../html/viapwh.html
10 vitut.ps: vi.in vi.chars
11 ${TBL} vi.in vi.chars | ${ROFF} ${MACROS} > $@
12 chmod 444 $@
14 summary.ps: vi.summary
15 ${TBL} vi.summary | ${ROFF} ${MACROS} > $@
16 chmod 444 $@
18 viapwh.ps: vi.apwh.ms
19 ${TBL} vi.apwh.ms | ${ROFF} ${MACROS} > $@
20 chmod 444 $@
22 ../html/vitut.html: vi.in vi.chars
23 test -d ../html || mkdir ../html
24 ${TBL} $+ | ${ROFF} -ms -Thtml | \
25 sed 's/<img src=".*png">//' > $@
26 rm -f *png
27 chmod 444 $@
29 ../html/vi-summary.html: vi.summary
30 ${TBL} $< | ${ROFF} -ms -Thtml | \
31 sed 's/<img src="$<.*png">//' > $@
32 rm -f "$<"*png
33 chmod 444 $@
35 ../html/viapwh.html: vi.apwh.ms
36 ${TBL} $< | ${ROFF} -ms -Thtml | \
37 sed 's/<img src="$<.*png">//' > $@
38 rm -f "$<"*png
39 chmod 444 $@
41 clean:
42 rm -f vitut.ps summary.ps viapwh.ps ../html/vitut.html \
43 ../html/vi-summary.html ../html/viapwh.html