malloc-items/Makefile

18 lines
503 B
Makefile
Raw Normal View History

2022-09-11 06:11:04 +00:00
.PHONY: all
2023-02-18 13:03:06 +00:00
BUILD_VERSION:=$(shell git describe --tags)
2022-09-11 06:11:04 +00:00
2023-02-18 13:03:06 +00:00
all: malloc-items-$(BUILD_VERSION).zip malloc-items-$(BUILD_VERSION).zip.sha1
2022-09-11 06:11:04 +00:00
2023-02-18 13:03:06 +00:00
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
2022-09-11 06:11:04 +00:00
sha1sum $< > $@
clean:
2023-02-18 13:03:06 +00:00
rm -f malloc-items-$(BUILD_VERSION).zip malloc-items-$(BUILD_VERSION).zip.sha1