drop undocumented/unused PRESERVE_CACHE

This commit is contained in:
Lance Vick 2023-09-24 22:47:26 -07:00
parent 206148838d
commit 7d2bc3d6f8
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 1 additions and 3 deletions

View File

@ -20,7 +20,6 @@ GID := $(shell id -g)
USER := $(UID):$(GID) USER := $(UID):$(GID)
CPUS := $(shell docker run debian nproc) CPUS := $(shell docker run debian nproc)
ARCHIVE_SOURCES := true ARCHIVE_SOURCES := true
PRESERVE_CACHE := "false"
GIT_REF := $(shell git log -1 --format=%H) GIT_REF := $(shell git log -1 --format=%H)
GIT_AUTHOR := $(shell git log -1 --format=%an) GIT_AUTHOR := $(shell git log -1 --format=%an)
GIT_KEY := $(shell git log -1 --format=%GP) GIT_KEY := $(shell git log -1 --format=%GP)
@ -158,12 +157,11 @@ toolchain-reproduce: toolchain-clean
&& echo "Success: $(OUT_DIR) and $(DIST_DIR) are identical" && echo "Success: $(OUT_DIR) and $(DIST_DIR) are identical"
.PHONY: toolchain-dist .PHONY: toolchain-dist
toolchain-dist: toolchain-restore-mtime toolchain-dist-cache toolchain-dist: toolchain-clean toolchain-restore-mtime toolchain-dist-cache
git ls-files -o --exclude-standard | grep . \ git ls-files -o --exclude-standard | grep . \
&& { echo "Error: Git has untracked files present"; exit 1; } || : && { echo "Error: Git has untracked files present"; exit 1; } || :
git diff --name-only | grep . \ git diff --name-only | grep . \
&& { echo "Error: Git has unstaged changes present"; exit 1; } || : && { echo "Error: Git has unstaged changes present"; exit 1; } || :
[ "$(PRESERVE_CACHE)" = "true" ] || $(MAKE) toolchain-clean
$(MAKE) default $(MAKE) default
cp -Rp $(OUT_DIR)/* $(DIST_DIR)/ cp -Rp $(OUT_DIR)/* $(DIST_DIR)/