mkbuild

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

commit 12801f9178bf681e97aa6be45b384510b762a03c
parent da2eb58eae7b804bd8364ed33df8da45d879bf88
Author: Daniel Bainton <dpb@driftaway.org>
Date:   Thu, 22 May 2014 22:08:14 +0300

Support for building LIB targets inside subdirectories

This hasn't been tested yet, hopefully it works the same way as BIN. :)

Diffstat:
Mmk.build | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mk.build b/mk.build @@ -6,7 +6,7 @@ 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 '.' '_'|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 } +`{ for i in $LIB; do tobj=$(echo $i|tr '.' '_'|tr '/' '_'); printf "$i: \$"$tobj"_OBJ\n\n" ; done >> .targs.mk } <.targs.mk <$mkbuild/mk.deps