Commit 2215adbdec3b89b5c9bd8128537541a41fe741ee
authorMichel Pollet <buserror@gmail.com>
Fri, 18 May 2012 11:43:53 +0000 (12:43 +0100)
committerMichel Pollet <buserror@gmail.com>
Fri, 18 May 2012 11:43:53 +0000 (12:43 +0100)
Remove reference to explicit 'make' and /bin/bash

Signed-off-by: Michel Pollet <buserror@gmail.com>
13 files changed:
Makefile
Makefile.common
examples/Makefile
examples/board_hd77480/Makefile
examples/board_i2ctest/Makefile
examples/board_ledramp/Makefile
examples/board_reprap/Makefile
examples/board_simduino/Makefile
examples/board_timer_64led/Makefile
examples/board_usb/Makefile
examples/vhci/Makefile
simavr/Makefile
tests/Makefile

index df054e31b79fc01df2aa1c1ec148332622726546..ec703659a0a4ac773ca10019181d5aa65444d9a0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,15 @@
-all:   make-simavr make-tests make-examples
+all:   $(MAKE)-simavr $(MAKE)-tests $(MAKE)-examples
 
-make-simavr:
-       make -C simavr
+$(MAKE)-simavr:
+       $(MAKE) -C simavr
 
-make-tests: make-simavr
-       make -C tests
+$(MAKE)-tests: $(MAKE)-simavr
+       $(MAKE) -C tests
 
-make-examples: make-simavr
-       make -C examples
+$(MAKE)-examples: $(MAKE)-simavr
+       $(MAKE) -C examples
 
 clean:
-       make -C simavr clean
-       make -C tests clean
-       make -C examples clean
+       $(MAKE) -C simavr clean
+       $(MAKE) -C tests clean
+       $(MAKE) -C examples clean
index 32edcccd217a1b622a781a972dc8c9271085e42d..6c52f1d777afb6e36f3dfac03d77d9cbe60c2cdf 100644 (file)
@@ -57,6 +57,7 @@ AR                    ?= ar
 RANLIB                 ?= ranlib
 MKDIR          ?= mkdir -p
 INSTALL                ?= install
+SHELL          := ${shell which bash}
 
 # simavr directory
 SIMAVR         ?= ${shell for p in . .. ../.. ../../..;do test -d $$p/simavr/sim && echo $$p/simavr; done}
index b08ba6f002fe092d50c6f6fc278514283926d96c..680d0b7768dc446800c6cceee40c6c677e1918d1 100644 (file)
@@ -8,8 +8,8 @@ boards=$(boards_base)
 endif
 
 all:
-       for bi in ${boards}; do make -C $$bi; done
+       for bi in ${boards}; do $(MAKE) -C $$bi; done
 
 clean:
-       for bi in ${boards}; do make -C $$bi clean; done
+       for bi in ${boards}; do $(MAKE) -C $$bi clean; done
 
index ed1a8839ff6be645fb93188f98ad643457bda679..dcae86483e401fdbeedb352327c9b701561d63e3 100644 (file)
@@ -21,8 +21,6 @@ firm_src = ${wildcard at*${board}.c}
 firmware = ${firm_src:.c=.axf}
 simavr = ../../
 
-SHELL   = /bin/bash
-
 IPATH = .
 IPATH += ../parts
 IPATH += ${simavr}/include
index 651f0810e9ba5e61e072cc88f78a68aa6e1fbf86..ec0197bdc01d4cdc9d890e44bd0fcda8cbc8acc6 100644 (file)
@@ -21,8 +21,6 @@ firm_src = ${wildcard at*${board}.c}
 firmware = ${firm_src:.c=.axf}
 simavr = ../..
 
-SHELL   = /bin/bash
-
 IPATH = .
 IPATH += ${simavr}/examples/shared
 IPATH += ${simavr}/examples/parts
index 09161f0eb0edc88938f2055eb07b9b3853ae5e18..6a537d266e9521f8fc9d38dd00c9d20a2a3a2f8f 100644 (file)
@@ -21,8 +21,6 @@ firm_src = ${wildcard at*${board}.c}
 firmware = ${firm_src:.c=.axf}
 simavr = ../../
 
-SHELL   = /bin/bash
-
 IPATH = .
 IPATH += ../parts
 IPATH += ${simavr}/include
index 51d9eeb6b3f7196409f22e3c26e9e3c442c00b40..83b84edd24c8896b099ac7e3b1f3520f4d1a9f73 100644 (file)
@@ -21,8 +21,6 @@ firm_src = ${wildcard atmega*.c}
 firmware = ${firm_src:.c=.hex}
 simavr = ../../
 
-SHELL   = /bin/bash
-
 IPATH = .
 IPATH += src
 IPATH += ../parts
index b929a2f470f629bc7e2dc19bd3bf6f1dd5608a5b..75de2bfbe6a4c071d6113e95f501e48ce35da801 100644 (file)
@@ -21,8 +21,6 @@ firm_src = ${wildcard atmega*.c}
 firmware = ${firm_src:.c=.hex}
 simavr = ../../
 
-SHELL   = /bin/bash
-
 IPATH = .
 IPATH += ../parts
 IPATH += ${simavr}/include
index 35fe2163a1f3133229cbc524190e9da82903fc40..665025f3a6d0b1c66d60b062f242bb51afb0fd5a 100644 (file)
@@ -21,8 +21,6 @@ firm_src = ${wildcard at*${target}.c}
 firmware = ${firm_src:.c=.axf}
 simavr = ../../
 
-SHELL   = /bin/bash
-
 IPATH = .
 IPATH += ../parts
 IPATH += ${simavr}/include
index 410b9d48cb705969f9334b0709f20ca1cc9c125d..9aa7f47d3d9a92d401fba1b2bec246e43fc69eb1 100644 (file)
@@ -21,8 +21,6 @@ firm_src = at90usb162_cdc_loopback.c
 firmware = ${firm_src:.c=.hex}
 simavr = ../../
 
-SHELL   = /bin/bash
-
 IPATH = .
 IPATH += ../parts
 IPATH += ../vhci/include
@@ -47,14 +45,14 @@ ${board} : ${OBJ}/${target}.o
 
 ../vhci/lib/libusb_vhci.a:
        @echo -n "BUILDIN $@ "
-       @{ make -j -C ../vhci >/tmp/vhci.build.log 2>&1 || \
+       @{ $(MAKE) -j -C ../vhci >/tmp/vhci.build.log 2>&1 || \
                { echo "ERROR check /tmp/vhci.build.log"; exit 1; }; } && \
                        echo " Done" 
 
 vhci : ../vhci/lib/libusb_vhci.a 
 
 clean-vhci:
-       make -C ../vhci clean
+       $(MAKE) -C ../vhci clean
 
 ${target}: vhci ${board}
        @echo $@ done
index fd624ef0c4113e2039babffbbdbceb4818c10c7b..0164152c880b43ac982b434286b6a3c3e8786f6b 100644 (file)
@@ -18,7 +18,7 @@ all: library
 module: vhci-hcd-$(HCD_V)/usb-vhci-hcd.ko
 
 vhci-hcd-$(HCD_V)/usb-vhci-hcd.ko: vhci-hcd-$(HCD_V)
-       make -C vhci-hcd-$(HCD_V) \
+       $(MAKE) -C vhci-hcd-$(HCD_V) \
                KDIR=/lib/modules/${shell uname -r}/build \
                CORE_INCLUDE_DIR=$(PWD)/vhci-hcd-$(HCD_V)/linux/2.6.32/drivers/usb/core
 
@@ -37,7 +37,7 @@ lib/libusb_vhci.a: module libusb_vhci-$(VHCI_V)
        ln -snf vhci-hcd-$(HCD_V) linux && \
                cd libusb_vhci-$(VHCI_V) && \
                ./configure --prefix=$(PWD) CPPFLAGS="-I$(PWD)" --enable-static --disable-shared && \
-                       make -j && make install
+                       $(MAKE) -j && $(MAKE) install
 
 libusb_vhci-$(VHCI_V).tar.bz2:
        wget $(BASE_URL)/native%20libraries/libusb_vhci-$(VHCI_V).tar.bz2
index 17e69aa3367ee98b4aed2a8fbb0a74745d95c596..ae34c63b73bdcfea4360879dbdf25296f3aa2879 100644 (file)
@@ -18,7 +18,6 @@
 
 SIMAVR_VERSION = 1.0a10
 SIMAVR_REVISION        = 1
-SHELL=/bin/bash
 
 target = run_avr
 
index 007dbb22205de9e24d1e11473e852f1aac8fb3da..922312ccad1adaffc8e73060db11af67a74df9d7 100644 (file)
@@ -20,9 +20,6 @@
 #      You should have received a copy of the GNU General Public License
 #      along with simavr.  If not, see <http://www.gnu.org/licenses/>.
 
-
-SHELL          = /bin/bash
-
 sources                := $(wildcard at*.c)
 simavr                 = ..