W3 = /usr/users/wwwifa/docs/subatom/nucltheo
JS    = $(W3)/bin/js
GRAPH = $(W3)/bin/graph

files = main.js qspline.js pinterp.js

plot.png: $(files) makefile
	$(JS) main.js > points.dat
	$(GRAPH) \
		--width 0.6 --height 0.6 \
		--display-type png \
		--x-label "x" --y-label "y" \
		--top-label "Polynomial and Spline interpolation" \
		points.dat > plot.png
	$(GRAPH) \
		--symbol 1 0.05\
		--width 0.3 --height 0.2 \
		--display-type ps \
		--x-label "x" --y-label "y" \
		points.dat > plot.ps

