[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dependencies commands running (THIS IS A BUG) - make 3.81
From: |
Paul Smith |
Subject: |
Re: Dependencies commands running (THIS IS A BUG) - make 3.81 |
Date: |
Tue, 14 Feb 2017 00:23:20 -0500 |
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