summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 ..