aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2026-11-27 14:59:36 +0100
committerNicholas Rodrigues Lordello <[email protected]>2026-11-27 14:59:36 +0100
commit732bd7137f018e4ad0d114744c92e33c00921d31 (patch)
tree85c56e4bbea0eeb1a370ae8b2ea5d21bb11932b8 /Makefile
parentafb81e05605603f15e0bc223b4c5dbc690ad8e49 (diff)
Start Next Version of `dbx`next
This is the first PR in a fresh branch that refactors `dbx` to a new agentic development paradigm. The idea is to create a single development container for each project, and provision it with a working agent harness. The development flow is changed to fetching Git refs from the development box for review and signing on the host. It is meant as a hardened alternative compared to the previous version (where we would typically expose a GPG/SSH socket over an `ssh` connection to the guest, and rely on `pinentry` and `askpass` configuration to enforce user presence or verification tests for each authenticated operation. It is still in the early stages of "ideating" how the final project would look like, but I already have some idea on how I want it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile43
1 files changed, 19 insertions, 24 deletions
diff --git a/Makefile b/Makefile
index ca4d168..9a75daf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,31 +1,26 @@
.POSIX:
-PREFIX = $(HOME)/.local
-INSTALL = install
-
-OS ?= $(shell uname -s)
-ifeq ($(OS),Darwin)
- CONTAINER = container
-else
- CONTAINER = podman
-endif
-
-IMAGE = ghcr.io/nlordell/dbx:latest
+GO = go
+GOFLAGS =
+SCDOC = scdoc
.PHONY: all
-all:
- @echo "usage: make [install|container]"
-
-.PHONY: install
-install: dbx
- $(INSTALL) -d $(PREFIX)/bin
- $(INSTALL) -m 755 dbx $(PREFIX)/bin/dbx
+all: build man ;
-.PHONY: container
-container: container/Containerfile container/init
- $(CONTAINER) build --tag $(IMAGE) container
+.PHONY: build
+build:
+ @ mkdir -p build/bin
+ @ $(GO) build $(GOFLAGS) -o build/bin/dbx ./cmd/dbx
.PHONY: check
-check: dbx container/init container/stop
- shellcheck $^
- shfmt -d $^
+check:
+ @ $(GO) fmt ./...
+ @ $(GO) vet -fix ./...
+ @ $(GO) test ./...
+
+.PHONY: man
+man: build/man/man1/dbx.1 ;
+
+build/man/man1/dbx.1: man/dbx.1.scd
+ @ mkdir -p $(@D)
+ @ $(SCDOC) >$@ <man/dbx.1.scd