diff options
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ -COMMIT := $(shell git rev-parse --short HEAD) -LDFLAGS := "-X 'git.gabrielgio.me/cerrado/templates.Slug=.$(COMMIT)' -s -w" +SLUG ?= $(shell git rev-parse --short HEAD) +LDFLAGS := "-X 'git.gabrielgio.me/cerrado/templates.Slug=.$(SLUG)' -s -w" build: sass-slug tmpl go build \ @@ -17,7 +17,7 @@ sass-slug: mkdir -p static sassc \ --style compressed \ - -I scss scss/main.scss static/main.$(COMMIT).css + -I scss scss/main.scss static/main.$(SLUG).css sass: mkdir -p static |