From ef72d5bff281aa41d240ca34742269227ce2e37c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 25 May 2015 22:36:03 +1000 Subject: [PATCH] build: don't expand all target unless a '-' is in main target --- mk/targets.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mk/targets.mk b/mk/targets.mk index 2bb7e6db04..341945948a 100644 --- a/mk/targets.mk +++ b/mk/targets.mk @@ -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