[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
warn not to expect both kinds of expansion at the same time
From: |
Dan Jacobson |
Subject: |
warn not to expect both kinds of expansion at the same time |
Date: |
Tue, 15 Jan 2019 11:56:52 +0800 |
In (info "(make) Wildcard Examples")
Wildcard expansion does not happen when you define a variable. Thus,
if you write this:
objects = *.o
then the value of the variable 'objects' is the actual string '*.o'.
However, if you use the value of 'objects' in a target or prerequisite,
wildcard expansion will take place there.
OK, but do also mention "don't expect to also have variable expansion done at
the same time", else risk:
make: *** No rule to make target
'$HOME/.spamassassin-tree/etc/mail/spamassassin/*.pre', needed by
'myconfdir/jidanni.pre'. Stop.
as seen with the commented out line in:
IT=$$HOME/.spamassassin-tree
#pre=$(IT)/etc/mail/spamassassin/*.pre
pre=/home/jidanni/.spamassassin-tree/etc/mail/spamassassin/*.pre
myconfdir/$J.pre: $(pre) myconfdir
perl ... > $@
GNU Make 4.2.1
Wait, using $(HOME) fixes it.
So warn "don't also expect shell expansion at the same time as *
expansion" I suppose.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- warn not to expect both kinds of expansion at the same time,
Dan Jacobson <=