The variable "MAKE" is used to store the command name that has invoked the Makefile. (Actually, it is already set to "make" if you run this script from a Makefile.) In this script, however, it is used to determine if Make should be run or not. It is not what we usually expect.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -35,7 +35,7 @@ usage() { · 34 unmodified lines | ||
| 35 | 35 | echo " -O dir to put generated output files" |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | −MAKE=true | |
| 38 | +RUNMAKE=true | |
| 39 | 39 | ALLTARGET=alldefconfig |
| 40 | 40 | WARNREDUN=false |
| 41 | 41 | OUTPUT=. |
| @@ -48,7 +48,7 @@ while true; do · 6 unmodified lines | ||
| 48 | 48 | continue |
| 49 | 49 | ;; |
| 50 | 50 | "-m") |
| 51 | − MAKE=false | |
| 51 | + RUNMAKE=false | |
| 52 | 52 | shift |
| 53 | 53 | continue |
| 54 | 54 | ;; |
| @@ -119,7 +119,7 @@ for MERGE_FILE in $MERGE_LIST ; do · 64 unmodified lines | ||
| 119 | 119 | cat $MERGE_FILE >> $TMP_FILE |
| 120 | 120 | done |
| 121 | 121 | |
| 122 | −if [ "$MAKE" = "false" ]; then | |
| 122 | +if [ "$RUNMAKE" = "false" ]; then | |
| 123 | 123 | cp $TMP_FILE $OUTPUT/.config |
| 124 | 124 | echo "#" |
| 125 | 125 | echo "# merged configuration written to $OUTPUT/.config (needs make)" |