blob: 7c297249e4b8dcd096dea565d19592463d052c23 [file] [log] [blame]
rsc5c34ff92003-11-23 18:10:54 +00001none:VQ:
2 echo usage: mk all, install, installall, '$O'.cmd, cmd.install, or cmd.installall
3
rscf7012582003-11-25 01:40:27 +00004PROGS=${TARG:%=$O.%}
5
rsc5c34ff92003-11-23 18:10:54 +00006all:V: $PROGS
7
rsc3f54e7c2005-01-04 22:09:40 +00008$O.%: %.$O $OFILES $LIB # ${SHORTLIB:%=$LIBDIR/lib%.a}
rsc5c34ff92003-11-23 18:10:54 +00009 $LD -o $target $prereq $LDFLAGS
10
rsc5c34ff92003-11-23 18:10:54 +000011%.install:V: $BIN/%
12
13$BIN/%: $O.%
14 $INSTALL $O.$stem $BIN/$stem
15
rsc2fd9db92004-02-29 22:58:04 +000016many-install:V:
rsc5c34ff92003-11-23 18:10:54 +000017 for i in $TARG
18 do
19 mk $MKFLAGS $i.install
20 done
21
rsc2fd9db92004-02-29 22:58:04 +000022install:V: many-install
23
rscf7012582003-11-25 01:40:27 +000024CLEANFILES=$CLEANFILES $PROGS
25NUKEFILES=$NUKEFILES ${TARG:%=$BIN/%}
rsc5c34ff92003-11-23 18:10:54 +000026
rscf7012582003-11-25 01:40:27 +000027<$PLAN9/src/mkcommon
rsc5c34ff92003-11-23 18:10:54 +000028