kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

commit 3fd5286ad48412a72fd8adde095d9d1784622ef0
parent 7007eef93b526756a09f98af5cbd01096fdf1b7e
Author: Ryan Sepassi <rsepassi@gmail.com>
Date:   Mon, 25 May 2026 14:28:34 -0700

mk: one-entry-per-line for .PHONY and test: prerequisites

Reduces diff churn when adding or removing targets — each change
produces a single-line diff instead of touching a long concatenated line.

Diffstat:
MMakefile | 10+++++++++-
Mtest/test.mk | 75++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
2 files changed, 81 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -205,7 +205,15 @@ DRIVER_DEPS = $(DRIVER_OBJS:.o=.d) LIB_AR = $(BUILD_DIR)/libcfree.a BIN = $(BUILD_DIR)/cfree -.PHONY: all lib bin format clean bootstrap bootstrap-test-toy bench-opt +.PHONY: \ + all \ + lib \ + bin \ + format \ + clean \ + bootstrap \ + bootstrap-test-toy \ + bench-opt all: lib bin diff --git a/test/test.mk b/test/test.mk @@ -26,9 +26,78 @@ # asm_parse / cfree_disasm_iter_* are still stubs; the harness builds # and runs end-to-end so the wiring stays exercised. See doc/ASM.md. -.PHONY: test test-driver test-pp test-pp-err test-elf test-coff test-coff-mingw-import test-coff-windows-ucrt test-ar test-ar-driver test-strip-driver test-objcopy-driver test-objdump-driver test-link test-cg-api test-abi-classify test-toy test-opt test-dwarf test-debug test-parse test-parse-err test-asm test-wasm-front test-isa test-aa64-inline test-rv64-inline test-rv64-jit test-emu test-x64-inline test-x64-dbg test-rt-headers test-rt-runtime test-musl test-musl-rv64 test-glibc test-glibc-rv64 test-lib-deps test-smoke-x64 test-smoke-rv64 test-bounce test-cbackend rv64-doctor - -test: test-driver test-pp test-pp-err test-elf test-coff test-ar test-ar-driver test-strip-driver test-objcopy-driver test-objdump-driver test-link test-toy test-dwarf test-debug test-parse test-parse-err test-asm test-isa test-aa64-inline test-rv64-inline test-rv64-jit test-emu test-x64-inline test-x64-dbg test-rt-headers test-lib-deps +.PHONY: \ + test \ + test-driver \ + test-pp \ + test-pp-err \ + test-elf \ + test-coff \ + test-coff-mingw-import \ + test-coff-windows-ucrt \ + test-ar \ + test-ar-driver \ + test-strip-driver \ + test-objcopy-driver \ + test-objdump-driver \ + test-link \ + test-cg-api \ + test-abi-classify \ + test-toy \ + test-opt \ + test-dwarf \ + test-debug \ + test-parse \ + test-parse-err \ + test-asm \ + test-wasm-front \ + test-isa \ + test-aa64-inline \ + test-rv64-inline \ + test-rv64-jit \ + test-emu \ + test-x64-inline \ + test-x64-dbg \ + test-rt-headers \ + test-rt-runtime \ + test-musl \ + test-musl-rv64 \ + test-glibc \ + test-glibc-rv64 \ + test-lib-deps \ + test-smoke-x64 \ + test-smoke-rv64 \ + test-bounce \ + test-cbackend \ + rv64-doctor + +test: \ + test-driver \ + test-pp \ + test-pp-err \ + test-elf \ + test-coff \ + test-ar \ + test-ar-driver \ + test-strip-driver \ + test-objcopy-driver \ + test-objdump-driver \ + test-link \ + test-toy \ + test-dwarf \ + test-debug \ + test-parse \ + test-parse-err \ + test-asm \ + test-isa \ + test-aa64-inline \ + test-rv64-inline \ + test-rv64-jit \ + test-emu \ + test-x64-inline \ + test-x64-dbg \ + test-rt-headers \ + test-lib-deps # `test-cbackend` is intentionally not in the default `test` target: the # Phase 1 C backend skips most fixtures pending later phases, which would # add noise to the default summary. Run it explicitly to gate progress.