From: Michel Pollet Date: Fri, 2 Mar 2012 14:29:35 +0000 (+0000) Subject: examples: Exclude USB on non-linux X-Git-Tag: v1.0b1~28 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=6d70171faf504e72ac0b8dea4433f7a87f05566e;p=sx%2Fsimavr.git examples: Exclude USB on non-linux Skip USB example and parts on OSX Signed-off-by: Michel Pollet --- diff --git a/examples/Makefile b/examples/Makefile index 1b7df3e..b08ba6f 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,7 +1,15 @@ +boards_base=${wildcard board_*} +# remove vhci example on anything but linux +ifneq (${shell uname}, Linux) +boards=${subst board_usb,,$(boards_base)} +else +boards=$(boards_base) +endif + all: - for bi in board_*; do make -C $$bi; done + for bi in ${boards}; do make -C $$bi; done clean: - for bi in board_*; do make -C $$bi clean; done + for bi in ${boards}; do make -C $$bi clean; done