mkbuild

mk based build system
git clone git://git.2f30.org/mkbuild
Log | Files | Refs | LICENSE

mk.parent (920B)


      1 <$mkbuild/mk.config
      2 
      3 all:QV: $TARG
      4 
      5 `{ echo "# Auto-generated file by mk, do not edit" > .targs.mk }
      6 `{ for i in $TARG; do printf "$i:QV:\n\tcd $i\n\tenv -i PATH=\"$PATH\" configmk="$configmk" mkbuild=\"$mkbuild\" mk\n\n" ; done >> .targs.mk }
      7 <.targs.mk
      8 
      9 install:QV:
     10 	for t in $TARG; do
     11 		cd $t
     12 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk install ROOT="${ROOT}"
     13 		cd ..
     14 	done
     15 
     16 clean:QV:
     17 	rm .targs.mk
     18 	for t in $TARG; do
     19 		cd $t
     20 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk clean
     21 		cd ..
     22 	done
     23 
     24 distclean:QV:
     25 	for t in $TARG; do
     26 		cd $t
     27 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk distclean
     28 		cd ..
     29 	done
     30 
     31 fetch:QV:
     32 	for t in $TARG; do
     33 		cd $t
     34 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk fetch
     35 		cd ..
     36 	done
     37 
     38 package:QV:
     39 	for t in $TARG; do
     40 		cd $t
     41 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk package
     42 		cd ..
     43 	done