aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 0bb3b319a53bdae889583b3a6dc8c64c70c8cb5c (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
27
28
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) .

compress: build
	upx -1 $(OUT)

compress_into_oblivion: build
	upx --best --ultra-brute $(OUT)

run:
	$(GO_RUN) .

series:
	$(GO_RUN) . series