summaryrefslogtreecommitdiff
path: root/web/noweb/contrib/rsc/rc/mkfile
blob: a2165adb42209c210fba8ba66337ddb111cad0e2 (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

RCTARG=cpif noroots noweave notangle nountangle
RCLIBTARG=emptydefn noidx noindex toascii tohtml totex unmarkup noweb
AWKTARG=noidx.awk noindex.awk toascii1.awk toascii2.awk tohtml.awk 

%:	%.nw
	notangle -R$stem $stem.nw >$stem

%2.awk:	%.nw
	notangle -R$target $stem.nw >$target
%1.awk:	%.nw
	notangle -R$target $stem.nw >$target
%.awk:	%.nw
	notangle -R$target $stem.nw >$target

TARG=$RCTARG $RCLIBTARG $AWKTARG

default:V: $TARG

clean:V:
	rm $TARG

install:V:
	cp $RCTARG /rc/bin
	cp $RCLIBTARG /sys/lib/noweb/bin/rc
	chmod 775 /rc/bin/^($RCTARG)
	chmod 775 /sys/lib/noweb/bin/rc/^($RCLIBTARG)
	cp $AWKTARG /sys/lib/noweb