[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to use not "also" symbolic link time, but "only"
From: |
Mark Galeck (CW) |
Subject: |
how to use not "also" symbolic link time, but "only" |
Date: |
Fri, 13 Apr 2012 09:07:21 -0700 |
Hello,
If I have a target that is a soft symlink, the natural way to write the rule
would be:
MAKEFILE := $(lastword $(MAKEFILE_LIST))
from: $(MAKEFILE)
ln -sf to $@
Except it does not work, if Makefile changes and becomes newer than "to",
"from" is rebuilt all the time. I want to only consider the timestamp of the
link file, not in addition to the timestamp of the linked file, but instead of.
How to do this? Clearly it has to depend on the Makefile, since if you change
the rule to a different "to" file, the link must rebuild. But that also causes
it to always rebuild.
How to correctly write a rule for a symlink?
Mark
- how to use not "also" symbolic link time, but "only",
Mark Galeck (CW) <=
- Re: how to use not "also" symbolic link time, but "only", Paul Smith, 2012/04/13
- RE: how to use not "also" symbolic link time, but "only", Mark Galeck (CW), 2012/04/13
- RE: how to use not "also" symbolic link time, but "only", Mark Galeck (CW), 2012/04/13
- Re: how to use not "also" symbolic link time, but "only", Bryan Ischo, 2012/04/13
- RE: how to use not "also" symbolic link time, but "only", Mark Galeck (CW), 2012/04/13
- Re: how to use not "also" symbolic link time, but "only", Michael Ludwig, 2012/04/14