aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: ac4846a6bb58c77ee69732f398b7af943f5734fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.POSIX:
.SUFFIXES:

GO = go
RM = rm
GOFLAGS = -o pigeon
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin

goflags = $(GOFLAGS)

all: pigeon

pigeon:
	$(GO) build $(goflags) -ldflags "-X main.buildPrefix=$(PREFIX)"

clean:
	$(RM) -f pigeon

install: all
	mkdir -p $(DESTDIR)$(BINDIR)
	cp -f pigeon $(DESTDIR)$(BINDIR)