[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HELP] PHONY pattern rule makes the file w/ the same name
From: |
Paul Smith |
Subject: |
Re: [HELP] PHONY pattern rule makes the file w/ the same name |
Date: |
Thu, 05 Oct 2023 08:48:35 -0400 |
User-agent: |
Evolution 3.50.0 (by Flathub.org) |
On Wed, 2023-10-04 at 23:50 -0700, Kaz Kylheku wrote:
> Is there a good reason for that? The manual mentions only
> performance:
Well, performance is a good reason. But if you're looking for other
reasons I don't know; this behavior predates me.
> Say that I want to be able to say "make update-host-foo", such that
> Make will run some remote commands on host "foo". For any host name:
The manual tells you how to do this:
| To always rebuild a pattern rule consider using a “force target” (see
| Rules without Recipes or Prerequisites).
> update-host-%:
> ssh $* some command
Rewrite as:
update-host-%: FORCE
ssh $* some command
FORCE:
- [HELP] PHONY pattern rule makes the file w/ the same name, Bahman Movaqar, 2023/10/04
- Re: [HELP] PHONY pattern rule makes the file w/ the same name, Paul Smith, 2023/10/04
- Re: [HELP] PHONY pattern rule makes the file w/ the same name, Bahman Movaqar, 2023/10/04
- Re: [HELP] PHONY pattern rule makes the file w/ the same name, Bahman Movaqar, 2023/10/05
- Re: [HELP] PHONY pattern rule makes the file w/ the same name, Renaud Pacalet, 2023/10/05
- Re: [SOLVED] [HELP] PHONY pattern rule makes the file w/ the same name, Bahman Movaqar, 2023/10/08