USE_JAG = yes
include ${SEPINC}/SEP.top

tex = $(wildcard *.tex)

default:  $(patsubst %.tex,%.html,$(tex))

.PHONY: paper.tex 
paper.tex : 
	${MAKE} texclean
	${TOUCH} paper.tex; ${RM} paper.tex
	cat $(subst paper.tex,,$(wildcard *.tex)) > paper.tex 

html : $(foreach file,$(tex),$(subst .tex,.html,$(file))) 
	echo "hello"

%.html : %.tex
	${MAKE} clean 
	vulcanize < $*.tex > $*.html

clean : jclean
include ${SEPINC}/SEP.bottom

hi = $(foreach file,$(tex),$(subst .tex,.html,$(file))) 
