On 01/09/2013 09:51 AM, deed wrote:
# makefile -----------

OBJS = main.obj othermodule.obj
DC = dmd
DCFLAGS = -c

all : $(OBJS)

%.obj : %.d
$(DC) $< $(DCFLAGS)

# --------------------

Error on line 9: expecting target : dependencies

* main.d, othermodule.d and makefile are in the same folder.
* make is executed in this folder from the command line

Anyone cares to explain what's wrong/missing?

Assuming that this is for GNU make, ensuring that the rule starts with a tab characters, that file works with GNU Make 3.81.

Ali

Reply via email to