On 2/14/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > On Wednesday, 14 February 2007 12:33, Stefan Seyfried wrote: > > install-% : % > > - install --mode=755 $< $(DESTDIR)$(SUSPEND_DIR) > > + install -D --mode=755 $< $(DESTDIR)$(SUSPEND_DIR)/$< > > > > # Some convenience targets > > install-resume-new-initrd: resume conf/$(CONFIGFILE) > > > > > > If nobody has some serious objections, i'll commit these soon (saves me a > > local patch :-) > > Well, I'm not good at the Makefile magic at all, so could you please tell me > what $< means? ;-)
$< is expanded to the first prerequisite in the list. In our case the prerequisite is the expansion of the wildcard % (e.g. the prereq for install-foo is foo). Other useful vars are $^ which is expanded to the full list of prerequisites and $@ which is the target. Luca ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel