waf: call waf always from root in make wrapper

This commit is contained in:
Gustavo Jose de Sousa 2015-12-07 16:19:04 -02:00 committed by Randy Mackay
parent c4c9ce6a2a
commit eeb4613b0c
1 changed files with 4 additions and 4 deletions

View File

@ -7,9 +7,9 @@ EXPLICIT_COMMANDS = check clean list_boards
VEHICLES = copter plane rover
copter_DIR = ArduCopter
plane_DIR = ArduPlane
rover_DIR = APMrover2
copter_WAF_TARGET = ArduCopter
plane_WAF_TARGET = ArduPlane
rover_WAF_TARGET = APMrover2
all: $(WAF_BINARY)
@$(WAF) build
@ -28,7 +28,7 @@ $(EXPLICIT_COMMANDS): $(WAF_BINARY)
$(VEHICLES): $(WAF_BINARY)
@echo Build for vehicle $@
@cd $(ROOT)/$($@_DIR) && $(WAF) build
@$(WAF) build --target $($@_WAF_TARGET)
.DEFAULT: %-configure
@$(WAF) configure --board $@ build