mkbuild

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

commit da2eb58eae7b804bd8364ed33df8da45d879bf88
parent 50660b9c44de8f3c20ff0b3d00920fa21014fdde
Author: Daniel Bainton <dpb@driftaway.org>
Date:   Thu May 22 22:06:47 +0300

Support for BIN targets inside subdirectories

Diffstat:
mk.build | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mk.build b/mk.build @@ -5,7 +5,7 @@ BIN = `{ if test "$BIN" != ""; then echo $BIN; else echo "NOBIN"; fi } LIB = `{ if test "$LIB" != ""; then echo $LIB; else echo "NOLIB"; fi } `{ printf "# Auto-generated file by mk, do not edit\n\n" > .targs.mk } -`{ for i in $BIN; do tobj=$(echo $i|tr '.' '_'); printf "$i:Q: \$"$tobj"_OBJ\n\techo LD \$target\n\t\$LD \$prereq \$LDFLAGS \$DEPS_LDFLAGS \$LOCAL_LDFLAGS \$"$tobj"_LDFLAGS \$LOCAL_BIN_LDFLAGS -o \$target\n\n" ; done >> .targs.mk } +`{ for i in $BIN; do tobj=$(echo $i|tr '.' '_'|tr '/' '_'); printf "$i:Q: \$"$tobj"_OBJ\n\techo LD \$target\n\t\$LD \$prereq \$LDFLAGS \$DEPS_LDFLAGS \$LOCAL_LDFLAGS \$"$tobj"_LDFLAGS \$LOCAL_BIN_LDFLAGS -o \$target\n\n" ; done >> .targs.mk } `{ for i in $LIB; do tobj=$(echo $i|tr '.' '_'); printf "$i: \$"$tobj"_OBJ\n\n" ; done >> .targs.mk } <.targs.mk