morpheus

suckless linux distro
git clone git@git.2f30.org/morpheus.git
Log | Files | Refs | Submodules | README | LICENSE

mkfile (1449B)


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