Skip to content

Commit

Permalink
contrib/refresh_checksums.mk: automatically delete old checksums be…
Browse files Browse the repository at this point in the history
…fore adding new checksums (JuliaLang#43141)

Co-authored-by: Jameson Nash <[email protected]>

Co-authored-by: Jameson Nash <[email protected]>
  • Loading branch information
DilumAluthge and vtjnash committed Nov 19, 2021
1 parent 2c057f8 commit 61c6f33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/refresh_checksums.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ endef
# note that `"src"` is a special triplet value.
# if $(3) is "assert", we set BINARYBUILDER_LLVM_ASSERTS=1
define checksum_dep
checksum-$(1)-$(2)-$(3):
checksum-$(1)-$(2)-$(3): clean-$(1)
-+$(MAKE) $(QUIET_MAKE) -C "$(JULIAHOME)/deps" $(call make_flags,$(1),$(2),$(3)) checksum-$(1)
.PHONY: checksum-$(1)-$(2)-$(3)

Expand Down Expand Up @@ -113,6 +113,9 @@ pack-checksum-llvm pack-checksum-unwind: | pack-checksum-llvmunwind
pack-checksum-llvmunwind: | pack-checksum-llvm.*unwind
cd "$(JULIAHOME)/deps/checksums" && mv 'llvm.*unwind' llvmunwind

clean-%: FORCE
-rm "$(JULIAHOME)/deps/checksums"/'$*'

# define how to pack parallel checksums into a single file format
pack-checksum-%: FORCE
@echo making "$(JULIAHOME)/deps/checksums/"'$*'
Expand Down

0 comments on commit 61c6f33

Please sign in to comment.