Compare commits
2 Commits
9f03eb3e2a
...
340bdbe39e
| Author | SHA1 | Date | |
|---|---|---|---|
| 340bdbe39e | |||
| a1c3b852c3 |
10
Makefile
10
Makefile
@@ -6,13 +6,15 @@ BINARY := sfdupes
|
|||||||
VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
|
VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
|
||||||
LDFLAGS := -X main.Version=$(VERSION)
|
LDFLAGS := -X main.Version=$(VERSION)
|
||||||
|
|
||||||
.PHONY: all build test lint fmt fmt-check check docker hooks clean
|
.PHONY: sfdupes build test lint fmt fmt-check check docker hooks clean
|
||||||
|
|
||||||
all: check build
|
# Default target: build the binary. Phony so go build (which has its
|
||||||
|
# own build cache) always decides what to recompile.
|
||||||
build:
|
sfdupes:
|
||||||
go build -ldflags "$(LDFLAGS)" -o $(BINARY)
|
go build -ldflags "$(LDFLAGS)" -o $(BINARY)
|
||||||
|
|
||||||
|
build: sfdupes
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@go test -timeout 30s -cover ./... || \
|
@go test -timeout 30s -cover ./... || \
|
||||||
{ echo "--- Rerunning with -v for details ---"; \
|
{ echo "--- Rerunning with -v for details ---"; \
|
||||||
|
|||||||
@@ -393,7 +393,8 @@ Additional requirements:
|
|||||||
|
|
||||||
The `Makefile` is the single source of truth for all operations:
|
The `Makefile` is the single source of truth for all operations:
|
||||||
|
|
||||||
- `make build` — build the `sfdupes` binary (cgo disabled).
|
- `make` / `make build` — build the `sfdupes` binary (cgo
|
||||||
|
disabled); building is the default target.
|
||||||
- `make test` — run the test suite (30-second timeout; reruns with
|
- `make test` — run the test suite (30-second timeout; reruns with
|
||||||
`-v` on failure).
|
`-v` on failure).
|
||||||
- `make lint` — run `golangci-lint` with the repo config.
|
- `make lint` — run `golangci-lint` with the repo config.
|
||||||
|
|||||||
4
TODO.md
4
TODO.md
@@ -19,6 +19,10 @@
|
|||||||
|
|
||||||
# Completed Steps
|
# Completed Steps
|
||||||
|
|
||||||
|
- make the binary the default Make target (2026-07-24, branch
|
||||||
|
`make-default-target`): plain `make` now builds `sfdupes`
|
||||||
|
(previously it ran `check` plus `build`); `make build` remains as
|
||||||
|
an alias
|
||||||
- scan-wide phases, concurrent operands, batched updates (2026-07-24,
|
- scan-wide phases, concurrent operands, batched updates (2026-07-24,
|
||||||
branch `scan-wide-phases`): all operands seed the shared walk pool
|
branch `scan-wide-phases`): all operands seed the shared walk pool
|
||||||
and every pass runs once over the whole scan, so totals and ETAs
|
and every pass runs once over the whole scan, so totals and ETAs
|
||||||
|
|||||||
Reference in New Issue
Block a user