From 5e5d7cb3eb88ab0782d1668816e3d5922e3ceb96 Mon Sep 17 00:00:00 2001 From: Oren Ben-Kiki Date: Sun, 7 Apr 2024 10:26:58 +0300 Subject: [PATCH] Fix clean of timestamp files. --- .gitignore | 2 +- Makefile | 42 +++++++++++++++++++++--------------------- deps/clean.sh | 2 +- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index cb986d1..37e7a06 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ .*.swp .DS_Store TAGS -deps/.* +deps/.did.* deps/build.log junk* tags diff --git a/Makefile b/Makefile index 9d7223c..9b0ffb8 100644 --- a/Makefile +++ b/Makefile @@ -4,45 +4,45 @@ TODO_X = $(TODO)x .PHONY: ci ci: format check coverage docs $(TODO_X) unindexed_files -$(TODO_X): deps/.$(TODO_X) +$(TODO_X): deps/.did.$(TODO_X) -deps/.$(TODO_X): $(shell git ls-files | grep -v docs) +deps/.did.$(TODO_X): $(shell git ls-files | grep -v docs) deps/$(TODO_X).sh - @touch deps/.$(TODO_X) + @touch deps/.did.$(TODO_X) .PHONY: unindexed_files unindexed_files: @deps/unindexed_files.sh .PHONY: format -format: deps/.format -deps/.format: */*.jl deps/format.sh deps/format.jl +format: deps/.did.format +deps/.did.format: */*.jl deps/format.sh deps/format.jl deps/format.sh - @touch deps/.format + @touch deps/.did.format .PHONY: check check: static_analysis jet aqua untested_lines .PHONY: static_analysis -static_analysis: deps/.static_analysis +static_analysis: deps/.did.static_analysis -deps/.static_analysis: *.toml src/*.jl test/*.toml test/*.jl deps/static_analysis.sh deps/static_analysis.jl +deps/.did.static_analysis: *.toml src/*.jl test/*.toml test/*.jl deps/static_analysis.sh deps/static_analysis.jl deps/static_analysis.sh - @touch deps/.static_analysis + @touch deps/.did.static_analysis .PHONY: jet -jet: deps/.jet +jet: deps/.did.jet -deps/.jet: *.toml src/*.jl test/*.toml test/*.jl deps/jet.sh deps/jet.jl deps/jet.py +deps/.did.jet: *.toml src/*.jl test/*.toml test/*.jl deps/jet.sh deps/jet.jl deps/jet.py deps/jet.sh - @touch deps/.jet + @touch deps/.did.jet .PHONY: aqua -aqua: deps/.aqua +aqua: deps/.did.aqua -deps/.aqua: *.toml src/*.jl test/*.toml test/*.jl deps/aqua.sh deps/aqua.jl +deps/.did.aqua: *.toml src/*.jl test/*.toml test/*.jl deps/aqua.sh deps/aqua.jl deps/aqua.sh - @touch deps/.aqua + @touch deps/.did.aqua .PHONY: test test: tracefile.info @@ -51,18 +51,18 @@ tracefile.info: *.toml src/*.jl test/*.toml test/*.jl deps/test.sh deps/test.jl deps/test.sh .PHONY: line_coverage -line_coverage: deps/.coverage +line_coverage: deps/.did.coverage -deps/.coverage: tracefile.info deps/line_coverage.sh deps/line_coverage.jl +deps/.did.coverage: tracefile.info deps/line_coverage.sh deps/line_coverage.jl deps/line_coverage.sh - @touch deps/.coverage + @touch deps/.did.coverage .PHONY: untested_lines -untested_lines: deps/.untested +untested_lines: deps/.did.untested -deps/.untested: deps/.coverage deps/untested_lines.sh +deps/.did.untested: deps/.did.coverage deps/untested_lines.sh deps/untested_lines.sh - @touch deps/.untested + @touch deps/.did.untested .PHONY: coverage coverage: untested_lines line_coverage diff --git a/deps/clean.sh b/deps/clean.sh index e0ece68..6ce1e3c 100755 --- a/deps/clean.sh +++ b/deps/clean.sh @@ -1,3 +1,3 @@ #!/bin/bash set -e -o pipefail -rm -rf tracefile.info src/*.cov src/*/*.cov test/*.cov docs/build docs/assets docs/*.{html,js,cov} deps/.format deps/.untested +rm -rf tracefile.info src/*.cov src/*/*.cov test/*.cov docs/build docs/assets docs/*.{html,js,cov} deps/.did.*