%% "Tobias Contreras" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to