···11+PREFIX ?= /usr/local
22+33+build:
44+ swift build -c release 2>&1 | xcsift
55+66+install: build
77+ install -d $(PREFIX)/bin
88+ install .build/arm64-apple-macosx/release/ladder $(PREFIX)/bin/ladder
99+1010+uninstall:
1111+ rm -f $(PREFIX)/bin/ladder
1212+1313+test:
1414+ swift test 2>&1 | xcsift
1515+1616+.PHONY: build install uninstall test
+13-3
README.md
···19195. Computes SHA-256 inline while streaming data to disk (no second pass over the file)
20206. Writes a JSON `ExportResponse` to stdout
21212222-## Building
2222+## Installing
23232424Requires macOS 13+ and Swift 5.9+.
25252626```
2727-swift build -c release
2727+make install
2828```
29293030-The binary is at `.build/release/ladder`.
3030+This builds a release binary and installs it to `/usr/local/bin/ladder`. To install elsewhere:
3131+3232+```
3333+make install PREFIX=~/.local
3434+```
3535+3636+To uninstall:
3737+3838+```
3939+make uninstall
4040+```
31413242## Usage
3343