Header dependency in automake
I'd like to create a Makefile.am file which generates one header file mentioned in a xxx.c file. Let's say that xxx.c contains: #include <version.h> ... and that I have a rule to create it at the end of Makefile.am: version.h: echo '#define VERSION "'`hg id`'"' > version.h.tmp cmp version.h.tmp version.h || mv version....