aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 33c4df85ff315169140f4b68d3b29e62c48645eb (plain) (blame)
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
BINDIR := bin
GOCMD  := go
PREFIX := /usr/local


all: build

build:
	$(GOCMD) build -o $(BINDIR)/hopper ./cmd/hopper

install: build
	install -d $(DESTDIR)$(PREFIX)/bin
	install -m 0755 $(BINDIR)/hopper $(DESTDIR)$(PREFIX)/bin/hopper

uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/hopper

test:
	$(GOCMD) test ./...

freebsd:
	GOOS=freebsd GOARCH=amd64 $(GOCMD) build -o $(BINDIR)/hopper

clean:
	rm -rf $(BINDIR)