Diff options
Diffstat (limited to 'source/cgit.mk')
-rw-r--r--source/cgit.mk3
1 file changed, 2 insertions, 1 deletion
diff --git a/source/cgit.mk b/source/cgit.mk
index 876e353..0786086 100644
--- a/source/cgit.mk
+++ b/source/cgit.mk
@@ -27,6 +27,7 @@ CGIT_BUILD = $(CGIT_ROOT)/$(BUILDDIR)
# rather than in the bundled git, and CGIT_VERSION stands in for a tarball or
# a clone with no tags. The file is left alone when its line is unchanged,
# since everything that includes it would otherwise rebuild.
+.PHONY: force-version
$(CGIT_BUILD)/VERSION: force-version
@mkdir -p $(CGIT_BUILD)/
@cd $(CGIT_ROOT) && version='$(CGIT_VERSION)' && \
@@ -39,7 +40,6 @@ $(CGIT_BUILD)/VERSION: force-version
echo "$$line" >$(BUILDDIR)/VERSION && echo "$$line"; \
fi
-include $(CGIT_BUILD)/VERSION
-.PHONY: force-version
# Pinned so a compiler moving its default, as GCC 15 did to gnu23, cannot
# change what the sources mean. The GNU dialect because git's headers use GNU
@@ -182,4 +182,5 @@ CGIT_SP_OBJS := $(patsubst %.o,%.sp,$(CGIT_OBJS))
$(CGIT_SP_OBJS): $(CGIT_BUILD)/%.sp: $(CGIT_SRC)/%.c GIT-CFLAGS $(CGIT_BUILD)/CGIT-CFLAGS FORCE
$(QUIET_SP)cgcc -no-compile $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $(SPARSE_FLAGS) $(CGIT_CFLAGS) $<
+.PHONY: cgit-sparse
cgit-sparse: $(CGIT_SP_OBJS)