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