mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 11:56:28 -04:00
27 lines
1.1 KiB
Text
27 lines
1.1 KiB
Text
--- Makefile.orig 2019-08-23 07:50:16 UTC
|
|
+++ Makefile
|
|
@@ -557,20 +557,17 @@ VERSION_NUMBER = 4.4.0
|
|
# The dependency on .git/HEAD tracks switching between branches,
|
|
# the dependency on .git/index tracks new commits.
|
|
|
|
-.git/HEAD:
|
|
-.git/index:
|
|
-
|
|
-version.cpp: .git/HEAD .git/index Makefile
|
|
+version.cpp: Makefile
|
|
@echo "//Automatically generated file, see Makefile for details" > $@
|
|
- @echo "const char* VERSION_STRING = \"Vampire $(VERSION_NUMBER) (commit $(shell git log -1 --format=%h\ on\ %ci || echo unknown))\";" >> $@
|
|
+ @echo "const char* VERSION_STRING = \"Vampire $(FREEBSD_VERSION_NUMBER)\";" >> $@
|
|
|
|
################################################################
|
|
# separate directory for object files implementation
|
|
|
|
# different directory for each configuration, so there is no need for "make clean"
|
|
SED_CMD='s/^[(]HEAD$$/detached/' #
|
|
-BRANCH=$(shell git branch | grep "\*" | cut -d ' ' -f 2 | sed -e $(SED_CMD) )
|
|
-COM_CNT=$(shell git rev-list HEAD --count)
|
|
+BRANCH="master"
|
|
+COM_CNT="0"
|
|
CONF_ID := obj/$(shell echo -n "$(BRANCH) $(XFLAGS)"|sum|cut -d ' ' -f1)X
|
|
|
|
obj:
|