gEDA-user: A4 Printing
DJ Delorie
dj at delorie.com
Mon Sep 10 20:33:12 EDT 2007
> However, the pdf barfs. Is there a wrap error in your post, or is
> "$<" a construct I'm not familiar with?
When using pattern rules (wildcards) in Makefiles, there are some
variables you can use to expand to the part of the filenames that
match the wildcards. Example:
%.pdf : %.ps Makefile
ps2pdf $< > $@
If we're converting "page.ps" to "page.pdf", some useful variables are
as follows:
$@ page.pdf (the target)
$< page.ps (the first depends-on file)
$^ "page.ps Makefile" (all depends-on files)
$* page (the part that matched the '%')
More information about the geda-user
mailing list