docs/*/Makefile: create html subdir if needed
[nvi.git] / docs / exref / Makefile
blob97737480f56eb368d5355d250f594d704bcc908f
1 # $Id: Makefile,v 8.10 2001/01/28 15:50:07 skimo Exp $ (Berkeley) $Date: 2001/01/28 15:50:07 $
3 ROFF= groff
4 TBL= tbl
6 ALL= exref.ps summary.ps ../html/exref.html ../html/ex-summary.html
8 all: $(ALL)
10 ../html/exref.html: ex.rm
11 test -d ../html || mkdir ../html
12 ${TBL} $< | ${ROFF} -ms -Thtml | \
13 sed 's/<img src="$<.*png">//' > $@
14 rm -f "$<"*png
15 chmod 444 $@
17 ../html/ex-summary.html: ex.summary
18 test -d ../html || mkdir ../html
19 ${TBL} $< | ${ROFF} -ms -Thtml | \
20 sed 's/<img src="$<.*png">//' > $@
21 rm -f "$<"*png
22 chmod 444 $@
24 exref.ps: ex.rm
25 ${TBL} $< | ${ROFF} -ms > $@
26 chmod 444 $@
28 summary.ps: ex.summary
29 ${TBL} $< | ${ROFF} -ms > $@
30 chmod 444 $@
32 clean:
33 rm -f $(ALL)