mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
20 lines
695 B
Diff
20 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' > $@
|