malloc-datapack/Makefile
Victoria Fierce c6ca2455e4
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
build: add version to pack.mcmeta
2023-02-18 14:07:17 +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 $< > $@