summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2021-03-10 19:34:22 +0100
committerReinhard Panhuber <[email protected]>2021-03-10 19:34:22 +0100
commitb6db2ac99d9f31f8eef1745ac4eccf5ef6faf951 (patch)
tree83ce2bfdd03da40373bd60454c8dedd9d1b9eb5c /examples/make.mk
parent8cb3bd3cd30172d3023facb2522a435b414a3b7e (diff)
parent1cdd1b02098be05b511571457165fa66a27af7bc (diff)
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
Diffstat (limited to 'examples/make.mk')
-rw-r--r--examples/make.mk10
1 files changed, 2 insertions, 8 deletions
diff --git a/examples/make.mk b/examples/make.mk
index 82fbd020b..53f633b18 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -45,16 +45,10 @@ else
SRC_C += $(subst $(TOP)/,,$(wildcard $(TOP)/$(FAMILY_PATH)/*.c))
endif
-#TODO $(call fetch_submodule_if_empty,lib/sct_neopixel)
-
# Fetch submodules depended by family
-fetch_submodule_if_empty = \
- ifeq ($(wildcard $(TOP)/$1/*),) \
- $(info $(shell git -C $(TOP) submodule update --init $1)) \
- endif
-
+fetch_submodule_if_empty = $(if $(wildcard $(TOP)/$1/*),,$(info $(shell git -C $(TOP) submodule update --init $1)))
ifdef DEPS_SUBMODULES
- $(foreach s,$(DEPS_SUBMODULES),:$(call fetch_submodule_if_empty,$(s)))
+ $(foreach s,$(DEPS_SUBMODULES),$(call fetch_submodule_if_empty,$(s)))
endif
#-------------- Cross Compiler ------------