build: don't expand all target unless a '-' is in main target
This commit is contained in:
parent
527fc2a610
commit
ef72d5bff2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user