mirror of https://github.com/efabless/caravel.git
Added targets to unsplit files but leave the result compressed.
This commit is contained in:
parent
5233062ed8
commit
9f6303535a
17
Makefile
17
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue