8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
19 lines
695 B
Diff
19 lines
695 B
Diff
diff --git a/Makefile.ckati b/Makefile.ckati
|
|
index e4067bb..15518f3 100644
|
|
--- a/Makefile.ckati
|
|
+++ b/Makefile.ckati
|
|
@@ -102,14 +102,8 @@ $(KATI_CXX_TEST_EXES): $(KATI_BIN_PATH)/%: $(KATI_INTERMEDIATES_PATH)/%.o
|
|
$(KATI_LD) $^ -o $@ $(KATI_LIBS)
|
|
|
|
# Rule to generate version.cc
|
|
-KATI_GIT_DIR := $(shell git -C $(KATI_SRC_PATH) rev-parse --show-toplevel)
|
|
-ifneq ($(KATI_GIT_DIR),)
|
|
-KATI_VERSION_DEPS := $(KATI_GIT_DIR)/.git/HEAD $(KATI_GIT_DIR)/.git/index
|
|
-KATI_VERSION := $(shell git -C $(KATI_GIT_DIR) rev-parse HEAD)
|
|
-else
|
|
KATI_VERSION_DEPS :=
|
|
KATI_VERSION := unknown
|
|
-endif
|
|
$(KATI_INTERMEDIATES_PATH)/version.cc: $(KATI_VERSION_DEPS)
|
|
@mkdir -p $(dir $@)
|
|
echo '// +build ignore' > $@
|