makefile - "No dereference" option when touching symlinks with GNU Make -
gnu make has -t flag update timestamp of target files if had been rebuilt. of targets symlinks, , want gnu make update timestamp of symlink, not referenced file.
- gnu make has
-l|--check-symlink-timesoption read timestamps symlinks instead of referenced files, it's @ least aware of related issue. - the
touchcommand has-h|--no-dereferenceflag behavior i'm looking for.
but possible invoke kind of behavior while running make -t?
a quick @ make source makes can't this.
the touch_file function linked above function believe timestamp updating in question , uses open open , update file.
int fd = open (file->name, o_rdwr | o_creat, 0666);
Comments
Post a Comment