From a04745017ebd4cb7c4733d355eb30d21f5869803 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 12 Aug 2009 12:57:02 -0400 Subject: [PATCH] Added png output to Asymptote Makefile for my website. --- asymptote/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/asymptote/Makefile b/asymptote/Makefile index 8ab0d99..ebac727 100644 --- a/asymptote/Makefile +++ b/asymptote/Makefile @@ -18,15 +18,22 @@ MODULES = Circ ElectroMag Mechanics -all : $(MODULES:%=%-test.pdf) +all : pdfs pngs + +pdfs : $(MODULES:%=%-test.pdf) + +pngs : $(MODULES:%=%-test.png) view : $(MODULES:%=%-view) clean : - rm -f $(MODULES:%=%-test.pdf) + rm -f $(MODULES:%=%-test.pdf) $(MODULES:%=%-test.png) %-view : %-test.pdf xpdf $< & %-test.pdf : %-test.asy $(MODULES:%=%.asy) asy -f pdf $< + +%-test.png : %-test.asy $(MODULES:%=%.asy) + asy -f png $< -- 2.26.2