From: W. Trevor King Date: Wed, 12 Aug 2009 16:57:02 +0000 (-0400) Subject: Added png output to Asymptote Makefile for my website. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a04745017ebd4cb7c4733d355eb30d21f5869803;p=course.git Added png output to Asymptote Makefile for my website. --- 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 $<