diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..33c4df8 --- /dev/null +++ b/Makefile @@ -0,0 +1,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) |