Helmut Karlowski wrote:
man test states the same as bash, as is ksh btw. So dash is wrong.
The -nt test is not even in POSIX: http://www.opengroup.org/onlinepubs/009695399/utilities/test.html
However, Helmut, your proposition to add -o ! -f will do the trick in any case.Sure, but it is slow because it tests all files first (on first make).
Really too slow ? That would be surprising.Anyway, I see a well-know pattern: if a file does not exist or is older than another, do something. Isn't it the basic job for a makefile rule ? So you may make a rule where xversion.h depends on all the sources, and the job is done.
-- Vincent Rivière