diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 4dcf08c741c..900b5fe9796 100644 --- a/Makefile.am +++ b/Makefile.am @@ -52,7 +52,8 @@ gen-ChangeLog: (cd $(srcdir) && git diff && echo ===== git log ==== && git log) > $(distdir)/ChangeLog gen-VERSION: - if test -d .git; then \ - $(top_srcdir)/build-aux/pkg-version --full \ - > $(distdir)/VERSION; \ + if test -d $(top_srcdir)/.git; then \ + cd $(top_srcdir); \ + ./build-aux/pkg-version --full \ + > $(abs_top_builddir)/$(distdir)/VERSION; \ fi |