1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-16 11:28:34 +00:00
morpheus/mkfile
Daniel Bainton 94cc51d136 You can now specify targets in the mk command line
eg. mk install TARG=mksh ROOT=`pwd`/root
2014-04-09 10:12:38 +03:00

30 lines
708 B
Makefile

`{ test -e config.mk || cp config.def.mk config.mk }
configmk = `{pwd}/config.mk
mkbuild = `{pwd}/mkbuild
all:QV:
cd ports
env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk TARG="$TARG"
init:QV:
git submodule init
git submodule update --remote
install:QV:
cd ports
env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk install ROOT="${ROOT}" TARG="$TARG"
clean:QV:
cd ports
env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk clean TARG="$TARG"
distclean:QV:
cd ports
env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk distclean TARG="$TARG"
fetch:QV:
cd ports
env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk fetch TARG="$TARG"