diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-03-23 14:53:22 +0100 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-03-23 14:53:22 +0100 |
| commit | ee3a88858bb3636b39b02166bf57e220cf9cb6d5 (patch) | |
| tree | dd0bf62aa56bdcb0b52344c7b8ea1f62f15852f0 /Makefile | |
| parent | 26f172dd393ec3408312e7bcd9cdf04a666c1f29 (diff) | |
Cleanup and License
License code for publishing under GPL, and cleanup a bit (in
particular, add a `Makefile` for building the Go `dbx-proxy`
executable).
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
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 |
