diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-15 19:36:33 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-15 19:40:45 +0200 |
commit | c7b8a0958f779b9175f147edb417e2f03795e4e4 (patch) | |
tree | c35272aa62f9a3db8eb34de3c435d8f62358094f | |
parent | 10925e006bf43edc79331fbe601e09a28c43df2b (diff) | |
download | cerrado-c7b8a0958f779b9175f147edb417e2f03795e4e4.tar.gz cerrado-c7b8a0958f779b9175f147edb417e2f03795e4e4.tar.bz2 cerrado-c7b8a0958f779b9175f147edb417e2f03795e4e4.zip |
ref: Make slug configurable
-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 |