From d78cb3c0daf7b994153d6a92f7a6349e05acbab0 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Mon, 4 Sep 2023 16:08:56 +0300 Subject: [PATCH] make: Don't copy compile_commands.json over to the build directory sources. --- make/rules-source.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make/rules-source.mk b/make/rules-source.mk index 4f8cd8fa..f9257df1 100644 --- a/make/rules-source.mk +++ b/make/rules-source.mk @@ -23,10 +23,10 @@ $(1)-rebuild: $$(OBJ)/.$(1)-source: SHELL := $$(SHELL) $$(OBJ)/.$(1)-source: $$(if $$(NO_MAKEFILE_DEPENDENCY),,$$(MAKEFILE_LIST)) $$(OBJ)/.$(1)-source: $$(shell echo -n 'syncing $(1)... ' >&2 && \ - rsync --dry-run --filter=:C --exclude '*~' --exclude .git $$($(2)_SOURCE_ARGS) --info=name -Oarx --delete "$$(abspath $(3))/" "$$($(2)_SRC)" | \ + rsync --dry-run --filter=:C --exclude '*~' --exclude .git --exclude compile_commands.json $$($(2)_SOURCE_ARGS) --info=name -Oarx --delete "$$(abspath $(3))/" "$$($(2)_SRC)" | \ grep -v -e ^$$$$ 2>/dev/null | grep -q ^ && echo $(1)-rebuild && \ echo 'done, dirty' >&2 || echo 'done' >&2) - rsync --filter=:C --exclude '*~' --exclude .git $$($(2)_SOURCE_ARGS) --info=name -Oarx --delete "$$(abspath $(3))/" "$$($(2)_SRC)" $(--quiet?) + rsync --filter=:C --exclude '*~' --exclude .git --exclude compile_commands.json $$($(2)_SOURCE_ARGS) --info=name -Oarx --delete "$$(abspath $(3))/" "$$($(2)_SRC)" $(--quiet?) touch $$@ $$(OBJ)/.$(1)-post-source: $$(OBJ)/.$(1)-source