On Mon, 2017-02-13 at 20:43 -0800, ruchi wrote: > NUMJOBS := 24 > MAKEFLAGS := -j3 -l36 > > SUBDIRS := a \ > b \ > c > > .PHONY $(SUBDIRS) > $(SUBDIRS) : $(SOME_INITIAL_WORK) > c : a b > $(SUBDIRS): > @echo "=> Working on '$@' for '$(ARCH)'..." > $(NOERR)+cd $(DIR) && time ./<script>
Please provide an actual working example that shows your problem. This makefile is malformed and has lots of missing variable assignments, etc. I tried to condense it down into a reproducible test case but it worked for me both with GNU make 3.81 and the latest make: $ cat Makefile SUBDIRS := a b c .PHONY: $(SUBDIRS) c : a b $(SUBDIRS): @echo "=> Working on '$@'..." +cd $@ && sleep 2 $ mkdir -p a b c $ make-3.81 -j3 c => Working on 'a'... => Working on 'b'... cd a && sleep 2 cd b && sleep 2 => Working on 'c'... cd c && sleep 2 _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make