Commit 6d70171faf504e72ac0b8dea4433f7a87f05566e
authorMichel Pollet <buserror@gmail.com>
Fri, 2 Mar 2012 14:29:35 +0000 (14:29 +0000)
committerMichel Pollet <buserror@gmail.com>
Fri, 2 Mar 2012 15:00:26 +0000 (15:00 +0000)
Skip USB example and parts on OSX

Signed-off-by: Michel Pollet <buserror@gmail.com>
examples/Makefile

index 1b7df3e0b7343e867506bc9ea3279551d8e20026..b08ba6f002fe092d50c6f6fc278514283926d96c 100644 (file)
@@ -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