]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - Recipe
Show the git commit hash in local dev builds too.
[PuTTY.git] / Recipe
diff --git a/Recipe b/Recipe
index 379f9b6b7fe9173bebaa4014663a907be5d4e857..952373f20e25bab0c92335cd431bd5b62d5fef0c 100644 (file)
--- a/Recipe
+++ b/Recipe
 # ------------------------------------------------------------
 # Additional text added verbatim to each individual Makefile.
 
+!cflags am version -DSOURCE_COMMIT=\"`git rev-parse HEAD 2>/dev/null`\"
+!begin am
+BUILT_SOURCES = empty.h
+CLEANFILES = empty.h
+empty.h: $(allsources)
+       echo '/* Empty file touched by automake makefile to force rebuild of version.o */' >$@
+
+!end
+!begin >empty.h
+/* Empty file touched by automake makefile to force rebuild of version.o */
+!end
+
 !begin vc vars
 CFLAGS = $(CFLAGS) /DHAS_GSSAPI
 !end