about summary refs log tree commit diff
path: root/Makefile.in
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2013-06-13 09:46:43 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2013-06-13 09:46:43 -0700
commite36e7d9adea7b8eab8f561e180f78b9f8e4eee5c (patch)
tree893f26aa779246d4d1bdb6c794cb51504eb2ea46 /Makefile.in
parent77feb2c1c4a852d4494af0783f0c33d6835fd4bb (diff)
downloadzsh-e36e7d9adea7b8eab8f561e180f78b9f8e4eee5c.tar.gz
zsh-e36e7d9adea7b8eab8f561e180f78b9f8e4eee5c.tar.xz
zsh-e36e7d9adea7b8eab8f561e180f78b9f8e4eee5c.zip
31474: create patchlevel.h correctly when using a separate build tree
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index a29ab7885..197276c42 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -160,7 +160,7 @@ targz-src: $(DISTNAME).tar.gz
 $(DISTNAME).tar.gz: FORCE
 	@$(sdir_top)/Util/mkdisttree.sh $(DISTNAME) $(sdir_top) $(dir_top) SRC \
 	    $(MAKE) $(MAKEDEFS)
-	echo '#define ZSH_PATCHLEVEL "'`git describe --tags --long`'"' >$(DISTNAME)/Src/patchlevel.h.release
+	echo '#define ZSH_PATCHLEVEL "'`cd $(sdir_top) && git describe --tags --long`'"' >$(DISTNAME)/Src/patchlevel.h.release
 	tar cf - $(DISTNAME) | gzip -9 > $@
 	rm -rf $(DISTNAME)