aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8f6d462..068f872 100644
--- a/Makefile
+++ b/Makefile
@@ -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