mirror of https://github.com/ArduPilot/ardupilot
build: allow -j on top level makefile
By using $(MAKE) variable we allow to pass down to the called makefile the number of jobs we want to compile with. The flags are communicated to the next level via MAKEFLAGS variable. Reference: https://www.gnu.org/software/make/manual/html_node/Options_002fRecursion.html#Options_002fRecursion
This commit is contained in:
parent
178bbb080b
commit
3d8211696c
8
Makefile
8
Makefile
|
@ -15,13 +15,13 @@ clean: plane copter rover antennatracker
|
||||||
.PHONY: plane copter rover antennatracker
|
.PHONY: plane copter rover antennatracker
|
||||||
|
|
||||||
plane:
|
plane:
|
||||||
make -C ArduPlane $(TARGET)
|
$(MAKE) -C ArduPlane $(TARGET)
|
||||||
|
|
||||||
copter:
|
copter:
|
||||||
make -C ArduCopter $(TARGET)
|
$(MAKE) -C ArduCopter $(TARGET)
|
||||||
|
|
||||||
rover:
|
rover:
|
||||||
make -C APMrover2 $(TARGET)
|
$(MAKE) -C APMrover2 $(TARGET)
|
||||||
|
|
||||||
antennatracker:
|
antennatracker:
|
||||||
make -C AntennaTracker $(TARGET)
|
$(MAKE) -C AntennaTracker $(TARGET)
|
||||||
|
|
Loading…
Reference in New Issue