summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile
index 1b36d16eb4..da620bbf7c 100644
--- a/crawl-ref/source/makefile
+++ b/crawl-ref/source/makefile
@@ -142,6 +142,10 @@ ifdef NEED_STATIC
LDFLAGS += -static
endif
+ifdef USE_MERGE_BASE
+MERGE_BASE := $(shell git merge-base HEAD $(USE_MERGE_BASE))
+endif
+
# Permissions to set on the game executable.
MCHMOD := 2755
@@ -605,7 +609,7 @@ compflag.h:
$(QUIET_GEN)util/gen-cflg.pl compflag.h "$(CFLAGS)" "$(CFLAGS_L)" "$(LDFLAGS)"
build.h:
- $(QUIET_GEN)util/gen_ver.pl $@
+ $(QUIET_GEN)util/gen_ver.pl $@ $(MERGE_BASE)
version.cc: build.h compflag.h