summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-02-27 12:51:15 -0500
committerpommicket <pommicket@gmail.com>2023-02-27 12:51:15 -0500
commit11300a7e247eeb28c101f43a51d8dbfde0479eaa (patch)
treef14360d0862a51eb9014a6ee079b304be8fc74b8 /Makefile
parentc59e6a40b2d89650b3cec4f2d0abad38af46ec0b (diff)
better interaction between path-specific & lang-specific settings
still needs more testing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5abdf63..63af6c6 100644
--- a/Makefile
+++ b/Makefile
@@ -11,9 +11,10 @@ LOCAL_DATA_DIR=/home/`logname`/.local/share/ted
INSTALL_BIN_DIR=/usr/bin
debug-build: ted compile_commands.json
ted: debug/ted
- cp debug/ted .
+ @# note: doing cp would fail if `ted` is busy
+ cat debug/ted > ted
compile_commands.json: debug/ted
- cp debug/compile_commands.json .
+ cat debug/compile_commands.json > compile_commands.json
debug/ted: *.[ch] libpcre2-32.a CMakeLists.txt
mkdir -p debug
cd debug && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug -GNinja ..