18 lines
503 B
Makefile
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
|