aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortsne <tsne.dev@outlook.com>2026-07-06 16:52:20 +0200
committertsne <tsne.dev@outlook.com>2026-07-06 21:37:42 +0200
commit84da43998f7cc42cc72652333ac6e3d293abb23e (patch)
tree6610f82df854ae86f7f34152bb05fc712ef6f314 /Makefile
downloadhopper-84da43998f7cc42cc72652333ac6e3d293abb23e.tar.gz
initialHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
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)