diff options
| author | tsne <tsne.dev@outlook.com> | 2026-07-06 16:52:20 +0200 |
|---|---|---|
| committer | tsne <tsne.dev@outlook.com> | 2026-07-09 10:38:22 +0200 |
| commit | 6d3de3d284e9a18fce0551089449b236642fd5e1 (patch) | |
| tree | 2a77f5bf531157d86a039e351a42527ef7ae7e70 /Makefile | |
| download | hopper-main.tar.gz | |
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..cc84fdf --- /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 ./cmd/hopper + +clean: + rm -rf $(BINDIR) |