From 6d70171faf504e72ac0b8dea4433f7a87f05566e Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Fri, 2 Mar 2012 14:29:35 +0000 Subject: [PATCH] examples: Exclude USB on non-linux Skip USB example and parts on OSX Signed-off-by: Michel Pollet --- examples/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 -- 2.39.5