smarter dist/manifest management

This commit is contained in:
Lance Vick 2023-03-02 09:27:27 -08:00
parent 27e0da8773
commit 71f3e33623
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 4 additions and 3 deletions

View File

@ -86,9 +86,10 @@ attest: toolchain-clean
$(MAKE) TARGET=$(TARGET) VERSION=$(VERSION) $(MAKE) TARGET=$(TARGET) VERSION=$(VERSION)
diff -q $(OUT_DIR)/manifest.txt $(DIST_DIR)/manifest.txt; diff -q $(OUT_DIR)/manifest.txt $(DIST_DIR)/manifest.txt;
$(DIST_DIR): default .PHONY: $(DIST_DIR)
mkdir -p $@ $(DIST_DIR):
rm -rf $@/* rm -rf $@/*
$(MAKE) toolchain-clean default
cp -R $(OUT_DIR)/* $@/ cp -R $(OUT_DIR)/* $@/
$(BIN_DIR): $(BIN_DIR):
@ -138,7 +139,7 @@ $(OUT_DIR)/release.env: | $(OUT_DIR)
echo 'GIT_KEY=$(GIT_KEY)' >> $(OUT_DIR)/release.env echo 'GIT_KEY=$(GIT_KEY)' >> $(OUT_DIR)/release.env
echo 'GIT_TIMESTAMP=$(GIT_TIMESTAMP)' >> $(OUT_DIR)/release.env echo 'GIT_TIMESTAMP=$(GIT_TIMESTAMP)' >> $(OUT_DIR)/release.env
$(OUT_DIR)/manifest.txt: | $(OUT_DIR) $(OUT_DIR)/manifest.txt: $(wildcard $(OUT_DIR)/*)
find -L $(OUT_DIR) \ find -L $(OUT_DIR) \
-type f \ -type f \
-not -path "$(OUT_DIR)/manifest.txt" \ -not -path "$(OUT_DIR)/manifest.txt" \