malloc-datapack/Makefile

15 lines
377 B
Makefile
Raw Normal View History

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