#
#       Makefile for turning source fils into htmls:
#
#
#       To create html files from source files:   make htmls
#
#       To clean up files created by make:        make clean
#

MATH2HTML = python mathcode2html.py --force 


# make list of html files to be created by 'make htmls':
HTML = \
  $(subst .f,.f.html,$(wildcard *.f)) \
  $(subst .m,.m.html,$(wildcard *.m)) \
  $(subst .py,.py.html,$(wildcard *.py)) \
  $(subst .data,.data.html,$(wildcard *.data)) \
  wikiexamples.html


#----------------------------------------------------------------------------


# To make individual html files:  (e.g. 'make fname.f.html'):
%.f.html : %.f ; $(MATH2HTML) $<
%.m.html : %.m ; $(MATH2HTML) $<
%.py.html : %.py ; $(MATH2HTML) $<
%.data.html : %.data ; $(MATH2HTML) $<
wikiexamples.html : wikiexamples ; $(MATH2HTML) wikiexamples


htmls: $(HTML) ;

clean:
	-rm -f $(HTML)


### DO NOT remove this line - make depends on it ###
