# build all html files (and test all all)
.PHONY: all
all:
	gfortran -c sub1.f
	ln -sf ../../spline.* .
	ln -sf ../../mtx09.* .
	for f in *.pas ;  do ./mkx $$f ; done

# remove all backup and executable files
.PHONY: clean
clean:
	rm -f `file * | awk '/ELF /{print $$1}' | sed 's/://'`
	rm -f *.out *~

.PHONY: distclean
distclean: clean
	rm *.pas.html *.o
