aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-15 19:36:33 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-15 19:40:45 +0200
commitc7b8a0958f779b9175f147edb417e2f03795e4e4 (patch)
treec35272aa62f9a3db8eb34de3c435d8f62358094f /Makefile
parent10925e006bf43edc79331fbe601e09a28c43df2b (diff)
downloadcerrado-c7b8a0958f779b9175f147edb417e2f03795e4e4.tar.gz
cerrado-c7b8a0958f779b9175f147edb417e2f03795e4e4.tar.bz2
cerrado-c7b8a0958f779b9175f147edb417e2f03795e4e4.zip
ref: Make slug configurable
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