[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: A4 Printing



> 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 '%')


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user