diff options
Diffstat (limited to 'buildtools')
-rwxr-xr-x | buildtools/check-experimental-syms.sh | 6 | ||||
-rwxr-xr-x | buildtools/gen-build-mk.sh | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/buildtools/check-experimental-syms.sh b/buildtools/check-experimental-syms.sh index d0915102..7d1f3a56 100755 --- a/buildtools/check-experimental-syms.sh +++ b/buildtools/check-experimental-syms.sh @@ -5,6 +5,12 @@ MAPFILE=$1 OBJFILE=$2 +# added check for "make -C test/" usage +if [ ! -e $MAPFILE ] || [ ! -f $OBJFILE ] +then + exit 0 +fi + if [ -d $MAPFILE ] then exit 0 diff --git a/buildtools/gen-build-mk.sh b/buildtools/gen-build-mk.sh index c18b205e..636920b6 100755 --- a/buildtools/gen-build-mk.sh +++ b/buildtools/gen-build-mk.sh @@ -5,7 +5,6 @@ # Auto-generate a Makefile in build directory # Args: # $1: path of project src root -# $2: path of build dir (can be relative to $1) echo "# Automatically generated by gen-build-mk.sh" echo @@ -18,7 +17,7 @@ echo echo "MAKEFLAGS += --no-print-directory" echo echo "all:" -echo " @\$(MAKE) -C $1 O=$2" +echo " @\$(MAKE) -C $1 O=\$(CURDIR)" echo echo "%::" -echo " @\$(MAKE) -C $1 O=$2 \$@" +echo " @\$(MAKE) -C $1 O=\$(CURDIR) \$@" |