4406af2b747dea5d01b23d48c4547d2374f7d3f1
[gnuplot] / demo / html / Makefile
1 all: html
2
3 distclean: clean
4 clean:
5         rm -f *.png *.gnu *.html *.dat epslatex* fit.log soundfit.par
6
7 GNUPLOT_LIB = ..
8
9 #
10 # Auto-generation of html demo set.
11 #
12 # Several of the demos need manual intervention:
13 #       fontfile vector epslatex
14 #
15 html: airfoil.html arrowstyle.html binary.html bivariat.html candlesticks.html contours.html controls.html datastrings.html discrete.html electron.html enhancedtext.html epslatex.html fillbetween.html fillcrvs.html fillstyle.html finance.html fit.html hidden.html hidden2.html histograms.html histograms2.html image.html index.html key.html layout.html mgr.html multimsh.html multiplt.html margins.html param.html pm3dcolors.html pm3d.html pm3dgamma.html pointsize.html polar.html poldat.html prob2.html prob.html rainbow.html random.html rectangle.html rgb_variable.html scatter.html simple.html singulr.html spline.html steps.html stringvar.html surface1.html surface2.html textcolor.html textrotate.html tics.html timedat.html using.html vector.html world.html world2.html dashcolor.html animate2.html
16
17 index.html: index.save
18         cp index.save index.html
19
20 image.html: $(GNUPLOT_LIB)/image.dem ./webify.pl
21         export DEMOTERM="png truecolor font arial 8 size 420,320"; ./webify.pl image
22
23 finance.html: $(GNUPLOT_LIB)/finance.dem ./webify.pl
24         export DEMOTERM="png enhanced transparent font arial 8 size 660,320"; ./webify.pl finance
25
26 multiplt.html: $(GNUPLOT_LIB)/multiplt.dem ./webify.pl
27         export DEMOTERM="png enhanced transparent font arial 8 size 610,480"; ./webify.pl multiplt
28
29 # The png terminal does not support dashed lines, so we create an eps file and convert it.
30 # Do this one last, so that if conversion fails everything else has already been done.
31 dashcolor.html: $(GNUPLOT_LIB)/dashcolor.dem ./webify.pl
32         export DEMOTERM="post eps color dash dashlength 3 font 'Helvetica' 16"; ./webify.pl dashcolor
33         mv dashcolor.1.png dashcolor.1.eps
34         convert -density 100 dashcolor.1.eps dashcolor.1.png
35
36 animate2.html: $(GNUPLOT_LIB)/animate2.dem ./webify.pl
37         export DEMOTERM="gif animate transparent opt delay 10 size 200,200 x000000"; ./webify.pl animate2
38         mv animate2.html temp.html
39         cat temp.html | sed -e 's/1.png/1.gif/g' > animate2.html
40         mv animate2.1.png animate2.1.gif
41         rm temp.html
42
43
44 %.html: $(GNUPLOT_LIB)/%.dem ./webify.pl
45         ./webify.pl $*
46