box-o-sand/math-replay/Makefile

17 lines
345 B
Makefile

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