mirror of https://github.com/ArduPilot/ardupilot
waf: call waf always from root in make wrapper
This commit is contained in:
parent
c4c9ce6a2a
commit
eeb4613b0c
|
@ -7,9 +7,9 @@ EXPLICIT_COMMANDS = check clean list_boards
|
||||||
|
|
||||||
VEHICLES = copter plane rover
|
VEHICLES = copter plane rover
|
||||||
|
|
||||||
copter_DIR = ArduCopter
|
copter_WAF_TARGET = ArduCopter
|
||||||
plane_DIR = ArduPlane
|
plane_WAF_TARGET = ArduPlane
|
||||||
rover_DIR = APMrover2
|
rover_WAF_TARGET = APMrover2
|
||||||
|
|
||||||
all: $(WAF_BINARY)
|
all: $(WAF_BINARY)
|
||||||
@$(WAF) build
|
@$(WAF) build
|
||||||
|
@ -28,7 +28,7 @@ $(EXPLICIT_COMMANDS): $(WAF_BINARY)
|
||||||
|
|
||||||
$(VEHICLES): $(WAF_BINARY)
|
$(VEHICLES): $(WAF_BINARY)
|
||||||
@echo Build for vehicle $@
|
@echo Build for vehicle $@
|
||||||
@cd $(ROOT)/$($@_DIR) && $(WAF) build
|
@$(WAF) build --target $($@_WAF_TARGET)
|
||||||
|
|
||||||
.DEFAULT: %-configure
|
.DEFAULT: %-configure
|
||||||
@$(WAF) configure --board $@ build
|
@$(WAF) configure --board $@ build
|
||||||
|
|
Loading…
Reference in New Issue