From c7b8a0958f779b9175f147edb417e2f03795e4e4 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 15 Jun 2024 19:36:33 +0200 Subject: ref: Make slug configurable --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3