diff options
| author | tsne <tsne.dev@outlook.com> | 2026-07-06 16:52:20 +0200 |
|---|---|---|
| committer | tsne <tsne.dev@outlook.com> | 2026-07-06 19:21:15 +0200 |
| commit | 2c41acab4c97f584e8e199b31dc456194b8d7e6c (patch) | |
| tree | 42381deb6c4f6da0f32945432207a31b4d86664e /Makefile | |
| download | hopper-2c41acab4c97f584e8e199b31dc456194b8d7e6c.tar.gz | |
initial
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) |