meta: add a release zip generation target

This commit is contained in:
Lephenixnoir 2024-01-07 16:28:40 +01:00
parent f3424c60a5
commit 6af6f97df4
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 13 additions and 0 deletions

1
ports/sh/.gitignore vendored
View File

@ -1 +1,2 @@
/exclude/
/PythonExtra*.zip

View File

@ -45,4 +45,16 @@ $(BUILD)/sh_assets/%.o: % $(SH_METADATA)
$(Q)mkdir -p $(dir $@)
$(Q)fxconv --toolchain=$(CROSS_COMPILE:%-=%) $(SH_CONVFLAGS) $< -o $@
ARCHIVE := PythonExtra-$(shell git describe).zip
# Weird rules calling back to fxcg50 and fx9860g3, both of whic include this
release:
$(MAKE) -C ../fx9860g3
$(MAKE) -C ../fxcg50
cd ../sh && zip "$(ARCHIVE)" -j ../fx9860g3/PythonEx.g1a ../fxcg50/PythonExtra.g3a
cd ../sh && zip "$(ARCHIVE)" -r examples modules
.PHONY: release
.PRECIOUS: $(ARCHIVE)
include $(TOP)/py/mkrules.mk