summaryrefslogtreecommitdiffstats
path: root/build/deps.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build/deps.mk')
-rw-r--r--build/deps.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/deps.mk b/build/deps.mk
index 3db62b6..a6ea673 100644
--- a/build/deps.mk
+++ b/build/deps.mk
@@ -11,8 +11,8 @@ include build/exports.mk
gen/deps.mk::
${MSG} "[ GEN] $@"
@printf '# %s\n' "$@" >$@
- @if build/cc.sh -MD -MP -MF /dev/null build/empty.c; then \
- printf 'CPPFLAGS += -MD -MP\n'; \
+ @if build/cc.sh -MD -MP build/empty.c -o gen/.deps.out; then \
+ printf '_CPPFLAGS += -MD -MP\n'; \
fi >>$@ 2>$@.log
${VCAT} $@
@printf -- '-include %s\n' ${OBJS:.o=.d} >>$@