Added targets to unsplit files but leave the result compressed.

This commit is contained in:
D. Mitch Bailey 2025-02-12 15:21:14 -08:00
parent 5233062ed8
commit 9f6303535a
1 changed files with 17 additions and 0 deletions

View File

@ -28,6 +28,7 @@ ARCHIVE_EXT ?= gz
# Needed to rebuild archives that were previously split # Needed to rebuild archives that were previously split
SPLIT_FILES := $(shell find . -type f -name "*.$(ARCHIVE_EXT).00.split") SPLIT_FILES := $(shell find . -type f -name "*.$(ARCHIVE_EXT).00.split")
SPLIT_FILES_ARCHIVES := $(basename $(basename $(SPLIT_FILES)))
SPLIT_FILES_SOURCES := $(basename $(basename $(basename $(SPLIT_FILES)))) SPLIT_FILES_SOURCES := $(basename $(basename $(basename $(SPLIT_FILES))))
# Needed to uncompress the existing archives # Needed to uncompress the existing archives
@ -275,6 +276,22 @@ uncompress-caravel:
cd $(CARAVEL_ROOT) && \ cd $(CARAVEL_ROOT) && \
$(MAKE) uncompress $(MAKE) uncompress
.SECONDEXPANSION:
$(SPLIT_FILES_ARCHIVES): %: $$(sort $$(wildcard %.*.split))
@cat $? > $@
@rm $?
@echo "$? -> $@"
.PHONY: unsplit
unsplit: $(SPLIT_FILES_ARCHIVES)
@echo "All split files have been combined!"
# Needed for targets that are run from UPRJ_ROOT for which caravel isn't submoduled.
.PHONY: unsplit-caravel
unsplit-caravel:
cd $(CARAVEL_ROOT) && \
$(MAKE) unsplit
# Digital Wrapper # Digital Wrapper
# verify that the wrapper was respected # verify that the wrapper was respected
.PHONY: xor-wrapper .PHONY: xor-wrapper