%% Scott <[EMAIL PROTECTED]> writes:

  s> byprice.cgi : LOCPTH = /home/swani/web2/dat
  s> byprice.cgi : DOMAIN = /domains/harvestview.com/cgi-bin
  s> byprice.cgi : CHAPTERS = u40.lst u60.lst u100.lst u500.lst

  s> byprice.cgi: $(BOOKPROG) $(DEFCODE) $(CHAPTERS) $(BOOK)

  s> So, how to do this correctly?

Well, that depends on what you want to do.

You could just list them all directly:

    byprice.cgi: $(BOOKPROG) $(DEFCODE) u40.lst u60.lst u100.lst u500.lst

Then, inside the command script, you can do something like $(filter %.lst,$<)
to get all the .lst files that were in the prerequisites list.

-- 
-------------------------------------------------------------------------------
 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