box-o-sand/math-replay/Makefile
Dan Buch 4361300838 nerding out a bit with haml
making a custom filter for LaTeX eqnarray divs
2012-04-04 07:55:10 -04:00

14 lines
322 B
Makefile

ALL := $(patsubst %.haml,%.html,$(shell find . -name '*.haml'))
ALL += $(patsubst %.tex,%.pdf,$(shell find . -name '*.tex'))
%.html:%.haml
haml -Ilib -rhaml/filters-ext $^ $@
%.pdf:%.tex
texi2pdf $^ -o $@ && \
rm -vf $(patsubst %.pdf,%.aux,$(notdir $@)) \
$(patsubst %.pdf,%.log,$(notdir $@))
all: $(ALL)