mkbuild

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

mk.deps (503B)


      1 
      2 `{ printf "# Auto-generated file by mk, do not edit\n\n" > .deps.mk }
      3 
      4 paths = `{ find $pkgdirs -type f -name mkfile }
      5 `{ for i in $DEPS; do \
      6 	for path in $paths; do \
      7 		dir=$(dirname $path); \
      8 		pkg=$(basename $dir); \
      9 		if test "$i" = "$pkg"; then \
     10 			printf "${i}_DEPDIR = $dir\n\n"; \
     11 			printf "<$dir/depsinc.mk\n\n"; \
     12 			printf "$pkg:QV:\n\tcd $dir\n\tenv -i PATH=\"$PATH\" configmk=\"$configmk\" mkbuild=\"$mkbuild\" mk\n\n"; \
     13 		fi; \
     14 	done; \
     15 done >> .deps.mk }
     16 
     17 <.deps.mk
     18 
     19 
     20 deps:V: $DEPS
     21