# ============================================================================ # 任务统一入口 # # make build 构建分发脚本 dist/media_organizer(bashly generate) # make test 运行单元测试 # make lint ShellCheck + bash -n 静态检查 # make check lint + test + 产物一致性(可接 CI) # make clean 删除构建产物 # # 直接调用底层脚本亦可(./build.sh、./tests/run.sh、./lint.sh)。 # ============================================================================ .PHONY: build test lint check clean build: ./build.sh test: ./tests/run.sh lint: ./lint.sh check: lint test ./build.sh --check clean: rm -f dist/media_organizer