[En-Nut-Discussion] Makefile Dependencies

Harald Kipp harald.kipp at egnite.de
Mon Mar 29 10:58:24 CEST 2004


>
>or do you allways enter:
>make clean; make install
>
>after you changed something ?

I usually know, wether I need 'make clean' or just
'make'. :-) But you are right, the dependencies are
missing.


>%.d: %.c
>         $(SHELL) -ec '$(CC) -M $(CPPFLAGS) $< | sed '\"s/$*.o/& $@/g'\" > $@'

Arrgh, sed cryptics are beyond my daily work. :-)
And I do not think (hope) sed is required at all.
Anyone else with a simpler solution?

Harald




More information about the En-Nut-Discussion mailing list