malloc-items/Makefile
Victoria Fierce 2e6836fb1a
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/tag/woodpecker Pipeline was successful
make: add version to filename
2023-02-18 14:05:44 +01:00

18 lines
503 B
Makefile

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