malloc-items/Makefile
Victoria Fierce 99742a9cdb
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
make: add version to filename
2023-02-18 14:06:52 +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