]> sjero.net Git - wget/blobdiff - src/Makefile.am
More reliable Mercurial node ids.
[wget] / src / Makefile.am
index 93930d14b6510d7316b620952096fc86129d959d..4f463f9016c92b425415af45429d6bd4b0d2b868 100644 (file)
@@ -73,7 +73,8 @@ version.c:  $(wget_SOURCES) $(LDADD) $(srcdir)/Makefile.am \
        echo '/* Autogenerated by Makefile - DO NOT EDIT */' >> $@
        echo '' >> $@
        echo 'const char *version_string = "@VERSION@"' >> $@
-       -hg log -r . --template='" ({node|short})"\n' 2>/dev/null >> $@
+       -hg log -R $(top_srcdir) -r . --template='" ({node|short})"\n' \
+           2>/dev/null >> $@
        echo ';' >> $@
        echo 'const char *compilation_string = "'$(COMPILE)'";' \
            | $(ESCAPEQUOTE) >> $@