blob: 69b82d9ae26675346d7810a090d1e10a0be7e7b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
BIN?=jnfilter
PREFIX?=/usr/local
BINDIR?=$(PREFIX)/bin
OUT=./bin/$(BIN)
SERVER=./main.go
GO_BUILD=go build -v -ldflags '-w -s'
GO_RUN=go run -v
all: build
install: build
install -Dm755 $(OUT) $(BINDIR)/$(BIN)
build:
$(GO_BUILD) -o $(OUT) $(SERVER)
compress: build
upx -1 $(OUT)
compress_into_oblivion: build
upx --best --ultra-brute $(OUT)
run: sass tmpl
$(GO_RUN) $(SERVER)
|