From 3d8211696cfee09a9559f64956c82a110678a959 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 27 Oct 2015 17:04:49 -0200 Subject: [PATCH] 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 --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 133b1fad97..5bdcdd2d2c 100644 --- a/Makefile +++ b/Makefile @@ -15,13 +15,13 @@ clean: plane copter rover antennatracker .PHONY: plane copter rover antennatracker plane: - make -C ArduPlane $(TARGET) + $(MAKE) -C ArduPlane $(TARGET) copter: - make -C ArduCopter $(TARGET) + $(MAKE) -C ArduCopter $(TARGET) rover: - make -C APMrover2 $(TARGET) + $(MAKE) -C APMrover2 $(TARGET) antennatracker: - make -C AntennaTracker $(TARGET) + $(MAKE) -C AntennaTracker $(TARGET)