malloc-datapack/Makefile

15 lines
377 B
Makefile
Raw Normal View History

2022-09-18 09:34:55 +00:00
.PHONY: all
2023-02-18 12:26:33 +00:00
BUILD_VERSION:=$(shell git describe --tags)
2022-09-18 09:34:55 +00:00
2023-02-18 12:26:33 +00:00
all: malloc-data-$(BUILD_VERSION).zip malloc-data-$(BUILD_VERSION).zip.sha1
2022-09-18 09:34:55 +00:00
2023-02-18 12:44:43 +00:00
pack.mcmeta: pack.mcmeta.in
sed -e 's/@VERSION@/$(BUILD_VERSION)/g' $< > $@
2023-02-18 12:26:33 +00:00
malloc-data-$(BUILD_VERSION).zip: pack.mcmeta
zip -r $@ pack.mcmeta data
malloc-data-$(BUILD_VERSION).zip.sha1: malloc-data-$(BUILD_VERSION).zip
2022-09-18 09:34:55 +00:00
sha1sum $< > $@