3 ms·
This is eminently possible with make-plus-GCC - add the line: .depend : gcc -M *.c > .depend then at the bottom: source .depend
by ArkyBeagle 13y ago
This is eminently possible with make-plus-GCC - add the line:
.depend :
gcc -M *.c > .depend
then at the bottom:
source .depend
- dmytrish 13y agoThank you for that useful option. Just a nitpick: did you mean `include .depend`?
- ArkyBeagle 13y agoGreat nit to pick. I was typing , not testing. I believe you are 100% correct. You may need to do a little finagling to bootstrap .depend when adding to an existing make file: echo "garp" > .depend; make .depend : may suffice.