views:

10

answers:

0

Hi I'm trying to build WebKit and I get following error:

make: *** No rule to make target `ArrayPrototype.lut.h', needed by `all'.  Stop.

To me, it looks like makefile has a rule for ArrayPrototype.lut.h (I'm probably wrong). Here's an extract from the makefile:

.PHONY : all
all : \
    ArrayPrototype.lut.h \
    chartables.c \
    DatePrototype.lut.h \

%.lut.h: create_hash_table %.cpp
 $^ -i > $@

Prerequisite file 'create_hash_table' exists.

If I try to explicitly specify a rule for ArrayPrototype.lut.h like this:

ArrayPrototype.lut.h: create_hash_table %.cpp
 $^ -i > $@

I get this error:

make: *** No rule to make target `create_hash_table', needed by `ArrayPrototype.lut.h'.  Stop.

Here's one thing which I don't understand: Why does make think that 'create_hash_table' is a rule and not a prerequisite?

Thanks in advance for your help.

related questions