zandra

zandra linux main repo
git clone git://zandra.org/zandra
Log | Files | Refs | Submodules | README | LICENSE

mkfile (1266B)


      1 `{ test -e config.mk || cp config.def.mk config.mk }
      2 
      3 configmk = `{pwd}/config.mk
      4 mkbuild = `{pwd}/mkbuild
      5 ROOT = `{pwd}/root
      6 
      7 <$configmk
      8 
      9 all:QV:
     10 	cd ports
     11 	if test "$TARG" = ""; then
     12 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk package
     13 	else
     14 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" TARG="$TARG" mk package
     15 	fi
     16 
     17 init:QV:
     18 	git submodule init
     19 	git submodule update --remote
     20 
     21 bootable:V:
     22 	stuff/create-bootable "$ROOT" zandra-$version-$arch.img
     23 
     24 install:QV:
     25 	cd ports
     26 	env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" ROOT="$ROOT" TARG="$TARG" mk installpkgs
     27 
     28 clean:QV:
     29 	cd ports
     30 	if test "$TARG" = ""; then
     31 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk clean
     32 	else
     33 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" TARG="$TARG" mk clean
     34 	fi
     35 
     36 distclean:QV:
     37 	cd ports
     38 	if test "$TARG" = ""; then
     39 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk distclean
     40 	else
     41 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" TARG="$TARG" mk distclean 
     42 	fi
     43 
     44 fetch:QV:
     45 	cd ports
     46 	if test "$TARG" = ""; then
     47 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk fetch
     48 	else
     49 		env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" TARG="$TARG" mk fetch 
     50 	fi