aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..52d8950
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+GO := docker run -it --rm --security-opt label=disable -v $(PWD):/dbx -w /dbx docker.io/library/golang go
+
+.PHONY: all
+all: dbx-proxy ;
+
+.PHONY: install
+install: all
+ mkdir -p $(HOME)/.local/bin
+ ln -s $(PWD)/dbx $(HOME)/.local/bin/dbx
+
+dbx-proxy: dbx-proxy.go
+ $(GO) build -o $@ $<
+
+.PHONY: fmt
+fmt:
+ $(GO) fmt dbx-proxy.go
+
+.PHONY: clean
+clean:
+ rm -f dbx-proxy