[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: are target-local variables for pattern rules well defined and suppor
From: |
Paul Smith |
Subject: |
Re: are target-local variables for pattern rules well defined and supported? |
Date: |
Sat, 06 May 2017 20:51:29 -0400 |
On Sat, 2017-05-06 at 16:08 -0800, Britton Kerin wrote:
> This seems to work:
>
> %.o: COMPILE = cp
> %.o: %.c
> $(COMPILE) $< $@
>
> but it makes me a little nervous. The manual doesn't seem to mention
> it in either the section on target-local variables or the one on
> pattern rules. Is this well defined and intentionally supported
> behavior?
Pattern-specific variables are described here:
https://www.gnu.org/software/make/manual/html_node/Pattern_002dspecific.html
which is the section directly after target-specific variables.