Comment on Do More and `make` Less with GNU Make and Less.jsparentComments−DSMan19527612yYep. Though with newer versions of gcc (I don't know how new though) you can avoid the nasty sed stuff. I'm currently using this to generate my .d files for C files: $(objtree)/%.d: $(srctree)/%.c @$(CC) -MM -MP -MF $@ $(CPPFLAGS) $< -MT $(objtree)/$*.o -MT $@ That generates a dependency file in the form: $(objtree)/%.o $(objtree)/%.d: (dependency list) (dependency-list-entry-1): (dependency-list-entry-2): etc... It's pretty handy. Avoiding all the sed stuff is nice.
Comments
Yep. Though with newer versions of gcc (I don't know how new though) you can avoid the nasty sed stuff. I'm currently using this to generate my .d files for C files:
That generates a dependency file in the form: It's pretty handy. Avoiding all the sed stuff is nice.