aboutsummaryrefslogtreecommitdiff
path: root/src/mkmany
blob: 64137837185e2e2ca5208efdd75df530ca67c500 (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
none:VQ:
	echo usage: mk all, install, installall, '$O'.cmd, cmd.install, or cmd.installall

PROGS=${TARG:%=$O.%}

all:V:	$PROGS

$O.%:	%.$O $OFILES $LIB ${SHORTLIB:%=$LIBDIR/lib%.a}
	$LD -o $target $prereq $LDFLAGS

%.install:V:	$BIN/%

$BIN/%:	$O.%
	$INSTALL $O.$stem $BIN/$stem

many-install:V:
	for i in $TARG
	do
		mk $MKFLAGS $i.install
	done

install:V: many-install

CLEANFILES=$CLEANFILES $PROGS
NUKEFILES=$NUKEFILES ${TARG:%=$BIN/%}

<$PLAN9/src/mkcommon