github.com/oinume/lekcije@v0.0.0-20231017100347-5b4c5eb6ab24/frontend/Makefile (about) 1 VERSION_HASH_VALUE = $(shell git rev-parse --short HEAD) 2 3 .PHONY: minify-static-development 4 minify-static-development: 5 MINIFY=true VERSION_HASH=_version_ npm run build 6 @echo "./static/_version_ created" 7 8 .PHONY: minify-static 9 minify-static: 10 MINIFY=true VERSION_HASH=$(VERSION_HASH_VALUE) npm run build 11 @echo "./static/$(VERSION_HASH_VALUE) created" 12 13 .PHONY: print-version-hash 14 print-version-hash: 15 @echo $(VERSION_HASH_VALUE)