3 ms·
What is wrong wrong with just using the following. Given it would be nice if make had a builtin macro to do this, but it is not too bad to type out. depend: .
by nn3 13y ago
What is wrong wrong with just using the following.
Given it would be nice if make had a builtin macro to do this, but it is not too bad to type out.
depend: .depend
.depend: ${SRC}
${CC} -MM -I. ${SRC} > .depend.X && mv .depend.X .depend
include .depend
Makefile: .depend
- marshray 13y agoBecause now make can't build a clean source tree. I believe make parses the entire Makefile before running it.