Skip to content

Commit 62e26ed

Browse files
committed
Makefiles: Do a deep clean by default.
1 parent 7a93e5f commit 62e26ed

File tree

6 files changed

+10
-29
lines changed

6 files changed

+10
-29
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ build:
66
clean:
77
make -C analysis clean
88

9-
clean-deep:
10-
make -C analysis clean-deep
11-
129
test:
1310
make -C analysis test
1411

1512
.DEFAULT_GOAL := build
1613

17-
.PHONY: build clean clean-deep test
14+
.PHONY: build clean test

analysis/Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ test: test-analysis-binary test-reanalyze
3030
clean:
3131
rm -f rescript-editor-analysis.exe
3232
dune clean
33+
make -C tests clean
3334
make -C reanalyze clean
3435

35-
clean-deep:
36-
make clean
37-
make -C reanalyze clean-deep
38-
3936
.DEFAULT_GOAL := build
4037

41-
.PHONY: build-analysis-binary build-reanalyze build-tests dce clean clean-deep format test
38+
.PHONY: build-analysis-binary build-reanalyze build-tests dce clean format test

analysis/reanalyze/Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ clean:
1212
make -C examples/deadcode clean
1313
make -C examples/termination clean
1414

15-
clean-deep:
16-
make -C examples/deadcode clean-deep
17-
make -C examples/termination clean-deep
18-
1915
.DEFAULT_GOAL := build
2016

21-
.PHONY: build clean clean-deep test
17+
.PHONY: build clean clean test

analysis/reanalyze/examples/deadcode/Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@ build: node_modules/.bin/rescript
99
test: build node_modules/.bin/rescript
1010
./test.sh
1111

12-
clean: node_modules/.bin/rescript
13-
node_modules/.bin/rescript clean -with-deps
14-
15-
clean-deep:
12+
clean:
1613
rm -r node_modules lib
1714

1815
.DEFAULT_GOAL := build
1916

20-
.PHONY: build clean clean-deep test
17+
.PHONY: build clean test

analysis/reanalyze/examples/termination/Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@ build: node_modules/.bin/rescript
99
test: build node_modules/.bin/rescript
1010
./test.sh
1111

12-
clean: node_modules/.bin/rescript
13-
node_modules/.bin/rescript clean -with-deps
14-
15-
clean-deep:
12+
clean:
1613
rm -r node_modules lib
1714

1815
.DEFAULT_GOAL := build
1916

20-
.PHONY: build clean clean-deep test
17+
.PHONY: build clean test

analysis/tests/Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@ build: node_modules/.bin/rescript
99
test: build
1010
./test.sh
1111

12-
clean: node_modules/.bin/rescript
13-
node_modules/.bin/rescript clean -with-deps
14-
15-
clean-deep:
12+
clean:
1613
rm -r node_modules lib
1714

1815
.DEFAULT_GOAL := test
1916

20-
.PHONY: clean clean-deep test
17+
.PHONY: clean test

0 commit comments

Comments
 (0)