waf: use single entry point for make wrappers
This commit is contained in:
parent
bbf146197c
commit
dc81a2410e
@ -1,2 +1,2 @@
|
||||
BUILD_VEHICLE = rover
|
||||
include ../Makefile.waf
|
||||
all:
|
||||
@$(MAKE) -C ../ -f Makefile.waf rover
|
||||
|
@ -1,2 +1,2 @@
|
||||
BUILD_VEHICLE = copter
|
||||
include ../Makefile.waf
|
||||
all:
|
||||
@$(MAKE) -C ../ -f Makefile.waf copter
|
||||
|
@ -1,2 +1,2 @@
|
||||
BUILD_VEHICLE = plane
|
||||
include ../Makefile.waf
|
||||
all:
|
||||
@$(MAKE) -C ../ -f Makefile.waf plane
|
||||
|
@ -11,12 +11,8 @@ copter_DIR = ArduCopter
|
||||
plane_DIR = ArduPlane
|
||||
rover_DIR = APMrover2
|
||||
|
||||
ifneq ($(BUILD_VEHICLE),)
|
||||
all: $(BUILD_VEHICLE)
|
||||
else
|
||||
all: $(WAF_BINARY)
|
||||
@$(WAF) build
|
||||
endif
|
||||
|
||||
$(WAF_BINARY):
|
||||
@git submodule init && git submodule update
|
||||
|
Loading…
Reference in New Issue
Block a user