diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /Makefile | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
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) + |
