aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2023-03-10 14:01:32 +0100
committerGitHub <noreply@github.com>2023-03-10 14:01:32 +0100
commit6d82f9e3d165e0200bed2f2784a1183f47b37fa3 (patch)
treea8ce1dbdc5c29fb7001b71f1bc5003055d303fa0 /src/makefile
parent586aded2dddf2e6101d2709e42bceccadb50e8a1 (diff)
parentc37397234534e9888dfeed9b1728c46646c33b58 (diff)
Merge branch 'lonkaars:dev' into dev
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/makefile b/src/makefile
index 1f1dc65..c69bfb5 100644
--- a/src/makefile
+++ b/src/makefile
@@ -4,6 +4,7 @@ TARGET = main
# platform is ds (desktop) or stm (stm32)
PLATFORM = ds
+# if your editor uses compile_commands.json for autocomplete, you should run `make compile_commands.json` again
HOST=$(strip $(shell uname -o))
@@ -74,14 +75,14 @@ flash: $(TARGET).bin
$(TARGET): $(OBJS)
$(LD) $^ $(LFLAGS) -o $@
-compile_commands.json:
+compile_commands.json: makefile stm32.mk ds.mk
compiledb make -Bn
../scripts/compiledb-full-path-mingw.sh compile_commands.json
PHONY += format
format:
- clang-format -i $(LOCAL_SRCS)
- clang-tidy --fix-errors $(LOCAL_SRCS)
+ clang-format -i $(LOCAL_SRCS) $(DESKTOP_SRCS)
+ clang-tidy --fix-errors $(LOCAL_SRCS) $(DESKTOP_SRCS)
PHONY += clean
clean: