Update Giancoli v6 to use Circ.asy v0.2.
[course.git] / asymptote / Makefile
1 # Run and clean up after my libraries' asymptote test suites.
2 #
3 # Copyright (C) 2008-2009 W. Trevor King <wking@drexel.edu>
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License along
16 # with this program; if not, write to the Free Software Foundation, Inc.,
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
19 MODULES = Circ ElectroMag Mechanics stickfigure
20 ASY = asy -noprc -render=0
21
22 all : svgs pdfs pngs
23
24 svgs : $(MODULES:%=%-test.svg)
25
26 pdfs : $(MODULES:%=%-test.pdf)
27
28 pngs : $(MODULES:%=%-test.png)
29
30 view : $(MODULES:%=%-view)
31
32 clean :
33         rm -f $(MODULES:%=%-test.pdf) $(MODULES:%=%-test.png)
34
35 %-view : %-test.pdf
36         xpdf $< &
37
38 %-test.svg : %-test.asy $(MODULES:%=%.asy)
39         $(ASY) -f svg $<
40
41 %-test.pdf : %-test.asy $(MODULES:%=%.asy)
42         $(ASY) -f pdf $<
43
44 %-test.png : %-test.asy $(MODULES:%=%.asy)
45         $(ASY) -f png $<