[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #54854] multi-target rules invoked too often with -j2
From: |
Paul D. Smith |
Subject: |
[bug #54854] multi-target rules invoked too often with -j2 |
Date: |
Mon, 25 Mar 2024 12:34:42 -0400 (EDT) |
Follow-up Comment #5, bug #54854 (group make):
Definitely there are a lot of valid uses. Generally, any time where you want
to define the same recipe for lots of different targets but you don't want to
have to write them all out one at a time.
Your assertion that this construct is not common is just not true: this
appears all over the place in all sorts of makefiles. In fact I just checked
a makefile generated by GNU's automake tool, and it uses the construct.
Here's one simple example of an obvious way this might be used:
SUBDIRS := $(wildcard */.)
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)
There's no reason this should give any sort of warning, even when used with
-j.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54854>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #54854] multi-target rules invoked too often with -j2, Paul D. Smith, 2024/03/24
- Message not available
- Message not available
- Message not available
- [bug #54854] multi-target rules invoked too often with -j2,
Paul D. Smith <=
- Message not available
- Message not available
- Message not available
- Message not available