malloc-datapack/Makefile
Victoria Fierce ab4dc5e503
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: add version to pack.mcmeta
2023-02-18 13:53:05 +01:00

15 lines
377 B
Makefile

.PHONY: all
BUILD_VERSION:=$(shell git describe --tags)
all: malloc-data-$(BUILD_VERSION).zip malloc-data-$(BUILD_VERSION).zip.sha1
pack.mcmeta: pack.mcmeta.in
sed -e 's/@VERSION@/$(BUILD_VERSION)/g' $< > $@
malloc-data-$(BUILD_VERSION).zip: pack.mcmeta
zip -r $@ pack.mcmeta data
malloc-data-$(BUILD_VERSION).zip.sha1: malloc-data-$(BUILD_VERSION).zip
sha1sum $< > $@