conditionalize build of ARM binaries on presence of arm-none-eabi-gcc in PATH
authorBdale Garbee <bdale@gag.com>
Sat, 30 Jun 2012 19:00:33 +0000 (13:00 -0600)
committerBdale Garbee <bdale@gag.com>
Sat, 30 Jun 2012 19:00:33 +0000 (13:00 -0600)
src/Makefile

index 3fca2ab259a9934c7e41dcdbd8f04c2bd09f1dbc..1b0dabe4cdf96a3b2df6ef628e8dd35ec4b9b89c 100644 (file)
@@ -15,8 +15,6 @@ vpath matrix.5c kalman
 include Version
 
 SUBDIRS=\
 include Version
 
 SUBDIRS=\
-       megametrum-v0.1 \
-       stm-bringup stm-demo \
        telemetrum-v1.2 telemetrum-v1.1 telemetrum-v1.0 \
        teledongle-v0.2 teledongle-v0.1 \
        telemini-v1.0 telenano-v0.1 \
        telemetrum-v1.2 telemetrum-v1.1 telemetrum-v1.0 \
        teledongle-v0.2 teledongle-v0.1 \
        telemini-v1.0 telenano-v0.1 \
@@ -26,6 +24,10 @@ SUBDIRS=\
        tidongle test telescience-v0.1 telepyro-v0.1 \
        teleterra-v0.2 teleshield-v0.1
 
        tidongle test telescience-v0.1 telepyro-v0.1 \
        teleterra-v0.2 teleshield-v0.1
 
+ifneq ($(shell which arm-none-eabi-gcc),)
+       SUBDIRS += megametrum-v0.1 stm-bringup stm-demo 
+endif
+
 all: all-local all-recursive
 
 RECURSIVE_TARGETS = all-recursive clean-recursive install-recursive
 all: all-local all-recursive
 
 RECURSIVE_TARGETS = all-recursive clean-recursive install-recursive