summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2018-11-05 00:43:55 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2018-11-10 00:24:30 +0300
commit4da10739e7aba31c90e7a91f0c06a5663a7903d3 (patch)
treefe156dba2e47145e6decedcca494d4b4a151fbd4 /cfg.mk
parent14eb2e28f83a78573225bd6910f4048e17090564 (diff)
downloadgnutls-4da10739e7aba31c90e7a91f0c06a5663a7903d3.tar.gz
cfg.mk: fix ChangeLog generation on out-of-tree builds
ChangeLog regeneration does not work for out-of-tree build, so let's fix that. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index 2bc752cb3f..7402dc6e63 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -104,7 +104,7 @@ clang-copy:
# ChangeLog must be PHONY, else it isn't generated on 'make distcheck'
.PHONY: ChangeLog
ChangeLog:
- git log --no-merges --no-decorate --pretty --since="2014 November 07"|grep -v ^'commit' > ChangeLog
+ (cd "$(srcdir)" ; if test -d .git ; then git log --no-merges --no-decorate --pretty --since="2014 November 07"|grep -v ^'commit' ; else echo "Empty" ; fi) > ChangeLog
tag = $(PACKAGE)_`echo $(VERSION) | sed 's/\./_/g'`