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-times option read timestamps symlinks instead of referenced files, it's @ least aware of related issue.
  • the touch command has -h|--no-dereference flag 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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -