box-o-sand/math-replay/Makefile
2012-04-02 07:53:57 -04:00

14 lines
297 B
Makefile

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