TXT := $(wildcard *.txt)
HTML := $(subst txt,html,$(TXT))

all: .identifier_save

force:
	dbase_maker $(HTML); linker $(HTML); link_back $(HTML);

clean: 
	rm *.html identifier.html

.identifier_save: $(HTML)
	dbase_maker $?; linker $?; link_back $?;

$(HTML): %.html: %.txt
	txt2html $< > $@; stable_sub "$(subst target,$<,<hr> <a href=target>source</a>)" "</body>" $@; stable_sub "<hr> <A HREF="mailto:jl@crush.caltech.edu">jl@crush.caltech.edu</A>" "</body>" $@; stable_sub " <A HREF="identifier.html">index</A>" "</body>" $@;
