flashcard-archive/archive/r4ids.com/Makefile
lifehackerhansol 5fa351a3a0
treewide: use deterministic-zip
https://github.com/timo-reymann/deterministic-zip

This solves a logistics issue; zip files always include the modified
timestamp of a file. This doesn't sound bad until you realize that
GitHub Actions always re-clones the entire repository, and the
timestamp is guaranteed to be different.

Because of this, every time we run our Actions workflow, the zip will
have a different checksum, causing git to re-commit *every single file*
to the frontend repository, causing long workflow times due to the
sheer size of each commit.

deterministic-zip hopefully solves this issue by forcing the modified
timestamp to one hardcoded in its binary, so here is to hoping we don't
abuse our git repo any further.
2024-01-14 21:59:35 -08:00

29 lines
881 B
Makefile

.PHONY: package
export TOPDIR := $(shell pwd $(CURDIR))
export BASE := $(shell basename $(CURDIR))
export OUT := $(TOPDIR)/../../out
export COMMON := $(TOPDIR)/../../common-kernels
package: directory BL2CK_1.31.0.zip r4ids.com_Original_Wood_R4_1.54.zip r4ids.com_Gold_2.0_AKAIO_1.8.6a.zip r4ids.com_Gold_Plus_Kernel_3.0.zip old extdata
directory:
mkdir -p $(OUT)/$(BASE)
include $(COMMON)/BL2CK/R4iTT/Makefile
r4ids.com_Original_Wood_R4_1.54.zip: directory
cd $(TOPDIR)/../r4ids.cn/r4ids.cn_non-3DS_Wood_R4_1.54 && zip -r $(OUT)/$(BASE)/$@ *
r4ids.com_Gold_2.0_AKAIO_1.8.6a.zip: directory
cd $(TOPDIR)/r4ids.com_Gold_2.0_AKAIO_1.8.6a && zip -r $(OUT)/$(BASE)/$@ *
r4ids.com_Gold_Plus_Kernel_3.0.zip: directory
cd $(TOPDIR)/r4ids.com_Gold_Plus_Kernel_3.0 && zip -r $(OUT)/$(BASE)/$@ *
old: directory
make -C $@
extdata: directory
cp -r README.txt $(OUT)/$(BASE)