Skip to content
Browse files

Generate dependencies with -MM instead of -M.

  • Loading branch information...
1 parent 1c6f89c commit addbe4a39f9009cb5ee4c3db4775f94055030294 @nelhage committed Jan 3, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 Makefile
View
2 Makefile
@@ -29,7 +29,7 @@ check-syntax:
%.d: %.c
@set -e; rm -f $@; \
- $(CC) -M $(CPPFLAGS) $< > $@.$$$$; \
+ $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$

0 comments on commit addbe4a

Please sign in to comment.
Something went wrong with that request. Please try again.