mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 03:57:45 +08:00
[build system] also include deps for cpp files
This commit is contained in:
+2
-3
@@ -128,9 +128,8 @@ $(OBJDIR)/%.o : %.cpp $(OBJDIR)/../Makefile.ac
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
||||
DEPS = $(addprefix $(OBJDIR)/,$($(TARGET).srcs:.c=.d))
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
DEPS = $(addprefix $(OBJDIR)/,$($(TARGET).srcs:.c=.d))
|
||||
DEPS += $(addprefix $(OBJDIR)/,$($(TARGET).srcs:.cpp=.d))
|
||||
-include $(DEPS)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user