Fix include path in dep generation

This commit is contained in:
Yuxuan Shui 2018-09-25 17:13:25 +01:00
parent 5efa21e22a
commit dbb5a6be83
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ src/.clang_complete: Makefile
.deps/%.d: src/%.c | .deps .deps/%.d: src/%.c | .deps
@set -e; rm -f $@; \ @set -e; rm -f $@; \
$(CC) -M $(CPPFLAGS) $< > $@.$$$$; \ $(CC) -M $(CPPFLAGS) $(INCS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$ rm -f $@.$$$$
%.o: src/%.c %.o: src/%.c