diff options
author | Marvin Borner | 2020-07-22 18:03:32 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-22 18:03:32 +0200 |
commit | c0a2074864e668b005eea8f50c6719bceb66bf20 (patch) | |
tree | 8d5f0cbfc256674937b227cab236902a700f72be | |
parent | 5121d4bc820b39901461c759a8fbd57d3a8462e3 (diff) |
Fixed makefile export
-rwxr-xr-x | run | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |