[Top][All Lists]

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

Re: newbie question re dependencies

From: Paul D. Smith
Subject: Re: newbie question re dependencies
Date: Fri, 1 Apr 2005 15:14:05 -0500

%% Scott <address@hidden> writes:

  s> byprice.cgi : LOCPTH = /home/swani/web2/dat
  s> byprice.cgi : DOMAIN = /domains/
  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 <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]