pkgsrc-Users archive

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

Re: portable make suffix transformation rules



On Sun 26 Aug 2018 at 17:35:51 +1000, Malcolm Herbert wrote:
> As I understand it from the man page, the following should work:
> 
> |.SUFFIXES: .svg

You should also have .dot in .SUFFIXES, since that isn't one of those
suffixes that is in there already. It should be before .svg, since one
makes .dot into .svg.

/tmp/y$ cat Makefile
.SUFFIXES: .dot .svg

.dot.svg:
        dot -Tsvg ${.IMPSRC} > ${.TARGET}
/tmp/y$ ls -l
total 2
-rw-r--r--  1 rhialto  wheel  67 Aug 26 15:00 Makefile
-rw-r--r--  1 rhialto  wheel   0 Aug 26 15:00 network.dot
murthe.0:/tmp/y$ make
make: no target to make.

make: stopped in /tmp/y
/tmp/y$ make network.svg
dot -Tsvg network.dot > network.svg
/tmp/y$

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/falu.nl      -- are condemned to reinvent it. Poorly.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index