From: Luca T. <kro...@gm...> - 2007-02-14 22:07:46
|
On 2/14/07, Rafael J. Wysocki <rj...@si...> 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 |