box-o-sand/oldstuff/math-replay/Makefile
2015-06-22 13:15:42 -05:00

26 lines
402 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)
clean:
rm -vf $(ALL)
serve:
rackup ./config.ru
.PHONY: all clean serve