From 97d5c458cfa039d857301e1ca7d5af3beb37131d Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sun, 26 Apr 2026 16:38:00 -0400 Subject: build: Better Build System --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..d56521e2 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +OS := openbsd netbsd freebsd unix-v10 plan9-4e inferno +OS_DIRS := $(patsubst %, static/%, $(OS)) + +all: $(OS_DIRS) manpage man.db + +manpage: main.go + go build + +man.db: $(OS_DIRS) + ./build-db $@ create.sql $(OS_DIRS) + +$(OS_DIRS): +ifeq ($(MAKECMDGOALS), clean) + $(MAKE) -C $@ clean +else + $(MAKE) -C $@ +endif + +clean: $(OS_DIRS) + go clean + rm -f man.db + +.PHONY: all clean $(OS_DIRS) + -- cgit v1.2.3