waf: Makefile.waf: simplify waf calls for vehicles

This commit is contained in:
Gustavo Jose de Sousa 2016-01-15 14:17:43 -02:00 committed by Lucas De Marchi
parent 5f6debd186
commit 386c12f8ff
1 changed files with 1 additions and 5 deletions

View File

@ -7,10 +7,6 @@ EXPLICIT_COMMANDS = check clean list_boards
VEHICLES = copter plane rover
copter_WAF_TARGET = ArduCopter
plane_WAF_TARGET = ArduPlane
rover_WAF_TARGET = APMrover2
all: $(WAF_BINARY)
@$(WAF) build
@ -28,7 +24,7 @@ $(EXPLICIT_COMMANDS): $(WAF_BINARY)
$(VEHICLES): $(WAF_BINARY)
@echo Build for vehicle $@
@$(WAF) build --target $($@_WAF_TARGET)
@$(WAF) $@
.DEFAULT: %-configure
@$(WAF) configure --board $@ build