docs/*/Makefile: create html subdir if needed
[nvi.git] / docs / edit / Makefile
blobc93918cda936d09cb7eb5ca24721c8b253fcc1fa
1 # $Id: Makefile,v 8.6 2001/01/28 15:50:07 skimo Exp $ (Berkeley) $Date: 2001/01/28 15:50:07 $
3 ROFF= groff
4 TBL= tbl
6 all: edittut.ps ../html/edittut.html
8 ../html/%.html: %.ms
9 test -d ../html || mkdir ../html
10 ${TBL} $< | ${ROFF} -ms -Thtml | \
11 sed 's/<img src="$<.*png">//' > $@
12 rm -f "$<"*png
13 chmod 444 $@
15 %.ps: %.ms
16 ${TBL} $< | ${ROFF} -ms > $@
17 chmod 444 $@
19 clean:
20 rm -f edittut.ps ../html/edittut.html