~gpanders/ijq

ref: 28f27ebf8a03436a678300f080da711ce201130b ijq/Makefile -rw-r--r-- 240 bytes
28f27ebf — Greg Anders Strip binary to reduce file size 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PREFIX := /usr/local
BINDIR := $(PREFIX)/bin
SRCS := main.go

.PHONY: all
all: ijq

ijq: $(SRCS)
	go build -ldflags="-s -w" -o $@

.PHONY: install
install: ijq
	mkdir -p $(BINDIR)
	install -m 0755 $< $(BINDIR)

.PHONY: clean
clean:
	rm ijq