Skip to content

Commit 93d53dd

Browse files
committed
Added better clean targets
1 parent e9b8eb1 commit 93d53dd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ all:
66

77
clean:
88
@dune clean
9+
@make -C lib clean-compile-commands
910

1011
doc:
1112
@dune build @doc

lib/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
TARGETS = postgresql.cma libpostgresql_stubs.a
22

3-
.PHONY: all clean
3+
.PHONY: all clean clean-compile-commands
44

55
all: compile_commands.json
66
@dune build $(TARGETS)
77

8-
clean:
8+
clean: clean-compile-commands
99
@dune clean
10-
@rm -f compile_commands.json
1110

1211
compile_commands.json: config/dune config/discover.ml postgresql_stubs.c
1312
@dune rules | dune-compiledb
13+
14+
clean-compile-commands:
15+
@rm -f compile_commands.json

0 commit comments

Comments
 (0)