Loading envsetup.sh +13 −3 Original line number Diff line number Diff line Loading @@ -792,10 +792,17 @@ function findmakefile() function mm() { local MM_MAKE=make local ARG= for ARG in $@ ; do if [ "$ARG" = mka ]; then MM_MAKE=mka fi done # If we're sitting in the root of the build tree, just do a # normal make. if [ -f build/core/envsetup.mk -a -f Makefile ]; then make $@ $MM_MAKE $@ else # Find the closest Android.mk file. T=$(gettop) Loading @@ -807,13 +814,14 @@ function mm() elif [ ! "$M" ]; then echo "Couldn't locate a makefile from the current directory." else ONE_SHOT_MAKEFILE=$M make -C $T all_modules $@ ONE_SHOT_MAKEFILE=$M $MM_MAKE -C $T all_modules $@ fi fi } function mmm() { local MMM_MAKE=make T=$(gettop) if [ "$T" ]; then local MAKEFILE= Loading Loading @@ -848,13 +856,15 @@ function mmm() ARGS="$ARGS dist" elif [ "$DIR" = incrementaljavac ]; then ARGS="$ARGS incrementaljavac" elif [ "$DIR" = mka ]; then MMM_MAKE=mka else echo "No Android.mk in $DIR." return 1 fi fi done ONE_SHOT_MAKEFILE="$MAKEFILE" make -C $T $DASH_ARGS $MODULES $ARGS ONE_SHOT_MAKEFILE="$MAKEFILE" $MMM_MAKE -C $T $DASH_ARGS $MODULES $ARGS else echo "Couldn't locate the top of the tree. Try setting TOP." fi Loading Loading
envsetup.sh +13 −3 Original line number Diff line number Diff line Loading @@ -792,10 +792,17 @@ function findmakefile() function mm() { local MM_MAKE=make local ARG= for ARG in $@ ; do if [ "$ARG" = mka ]; then MM_MAKE=mka fi done # If we're sitting in the root of the build tree, just do a # normal make. if [ -f build/core/envsetup.mk -a -f Makefile ]; then make $@ $MM_MAKE $@ else # Find the closest Android.mk file. T=$(gettop) Loading @@ -807,13 +814,14 @@ function mm() elif [ ! "$M" ]; then echo "Couldn't locate a makefile from the current directory." else ONE_SHOT_MAKEFILE=$M make -C $T all_modules $@ ONE_SHOT_MAKEFILE=$M $MM_MAKE -C $T all_modules $@ fi fi } function mmm() { local MMM_MAKE=make T=$(gettop) if [ "$T" ]; then local MAKEFILE= Loading Loading @@ -848,13 +856,15 @@ function mmm() ARGS="$ARGS dist" elif [ "$DIR" = incrementaljavac ]; then ARGS="$ARGS incrementaljavac" elif [ "$DIR" = mka ]; then MMM_MAKE=mka else echo "No Android.mk in $DIR." return 1 fi fi done ONE_SHOT_MAKEFILE="$MAKEFILE" make -C $T $DASH_ARGS $MODULES $ARGS ONE_SHOT_MAKEFILE="$MAKEFILE" $MMM_MAKE -C $T $DASH_ARGS $MODULES $ARGS else echo "Couldn't locate the top of the tree. Try setting TOP." fi Loading