From c0a2074864e668b005eea8f50c6719bceb66bf20 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 22 Jul 2020 18:03:32 +0200 Subject: Fixed makefile export --- run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'run') diff --git a/run b/run index 060c049..63e21d3 100755 --- a/run +++ b/run @@ -94,9 +94,9 @@ make_sync() { ctags -R --exclude=.git --exclude=build --exclude=iso --exclude=cross . make --always-make --dry-run | - grep -wE 'gcc|g++' | + grep -wE 'gcc' | grep -w '\-c' | - jq -nR '[inputs|{directory:".", command:., file: match(" [^ ]+$").string[1:]}]' \ + jq -nR '[inputs|{directory:"'"$(pwd)"'", command:., file: match(" [^ ]+$").string[1:]}]' \ >compile_commands.json } -- cgit v1.2.3