mirror of https://github.com/ArduPilot/ardupilot
waf: Makefile.waf: simplify waf calls for vehicles
This commit is contained in:
parent
5f6debd186
commit
386c12f8ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue