help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

parallel compilation of subdirs


From: Peng Yu
Subject: parallel compilation of subdirs
Date: Wed, 28 Nov 2007 15:45:13 -0600

Hi,

I have the following Makefile, which will go to each subdir and call
"make". But "make" in each subdir can not be executed in parallel
(when I "make" in the parent dir with -j option). I'm wondering if
there is any way to enable parallel compilation.

Thanks,
Peng


#######Makefile
SUBDIRS = $(filter-out Makefile%, $(wildcard *))

.PHONY: all

all:
        @for dir in $(filter-out backup, $(SUBDIRS)); do \
        $(MAKE) -C $$dir; \
        done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]