[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No rule to make target %.h

From: Paul D. Smith
Subject: Re: No rule to make target %.h
Date: Tue, 13 Jun 2006 09:16:08 -0400

%% "Tobias Contreras" <address@hidden> writes:

  tc> I am unable to add all header files as prerequisite using %
  tc> wildcard,

"%" is not a wildcard.  It's a pattern.

If used in a pattern rule, it can match _ONE_ file as long as the stem
(the part that matches "%") is the same between the target and
prerequisites containing the "%".

  tc> $(OBJ_DIR)/nandflash.o: ../../common/firmware/flash/nandflash.c %.h

If you want "nandflash.o" to depend on all .h files in the directory you
can use $(wildcard *.h), which IS a wildcard.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

[Prev in Thread] Current Thread [Next in Thread]