build: don't expand all target unless a '-' is in main target

This commit is contained in:
Andrew Tridgell 2015-05-25 22:36:03 +10:00
parent 527fc2a610
commit ef72d5bff2

View File

@ -88,8 +88,12 @@ $(1)-debug : $(1)
$(1)-hilsensors : $(1)
endef
ifneq ($(findstring -, $(MAKECMDGOALS)),)
ifneq (px4-v2,$(MAKECMDGOALS))
# generate targets of the form BOARD-FRAME and BOARD-FRAME-HIL
$(foreach board,$(BOARDS),$(foreach frame,$(FRAMES),$(eval $(call frame_template,$(board),$(frame)))))
endif
endif
apm2beta: EXTRAFLAGS += "-DAPM2_BETA_HARDWARE "
apm2beta: apm2