Simple makefile problem - implicit rule

deed none at none.none
Wed Jan 9 11:47:27 PST 2013


> .d.obj:
>    $(DC) $(DFLAGS) -c $<

> Ali

from http://digitalmars.com/ctg/make.html:

Implicit Definition lines
.targ_ext.dep_ext : [; rule] [# ... ]

Isn't targ_ext .obj and dep_ext .d?
If so, either the example or the documentation seems incorrect.

The example provided works. The .obj is updated when .d is 
modified.
Using
.obj.d:
     dmd $*.d -c

or

.obj.d:
     dmd $< -c

don't work.

My conclusion is that the documentation at 
http://digitalmars.com/ctg/make.html is incorrect. It should be:

Implicit Definition lines
.dep_ext.targ_ext : [; rule] [# ... ]


More information about the Digitalmars-d-learn mailing list