cerrado @ 8f5f9ff24b0327f7640e3619de109e1f19cfba1d

 1COMMIT := $(shell git rev-parse --short HEAD)
 2LDFLAGS := "-X 'git.gabrielgio.me/cerrado/templates.Slug=.$(COMMIT)' -s -w"
 3
 4build: sass-slug tmpl
 5	go build \
 6		-ldflags=$(LDFLAGS) \
 7		-o bin/cerrado
 8
 9run: sass tmpl
10	go run .
11
12test:
13	go test -v --tags=unit ./...
14
15sass-slug:
16	mkdir -p static
17	sassc \
18		-I scss scss/main.scss static/main.$(COMMIT).css
19
20sass:
21	mkdir -p static
22	sassc \
23		-I scss scss/main.scss static/main.css
24
25tmpl:
26	cd ./templates && \
27	qtc *
28
29.PHONY: sass