2012-04-02 11:42:09 +00:00
|
|
|
ALL := $(patsubst %.haml,%.html,$(shell find . -name '*.haml'))
|
2012-04-02 11:47:11 +00:00
|
|
|
ALL += $(patsubst %.tex,%.pdf,$(shell find . -name '*.tex'))
|
2012-04-02 11:42:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
%.html:%.haml
|
2012-04-04 11:55:10 +00:00
|
|
|
haml -Ilib -rhaml/filters-ext $^ $@
|
2012-04-02 11:42:09 +00:00
|
|
|
|
2012-04-09 01:22:55 +00:00
|
|
|
|
2012-04-02 11:47:11 +00:00
|
|
|
%.pdf:%.tex
|
2012-04-02 11:53:57 +00:00
|
|
|
texi2pdf $^ -o $@ && \
|
|
|
|
rm -vf $(patsubst %.pdf,%.aux,$(notdir $@)) \
|
|
|
|
$(patsubst %.pdf,%.log,$(notdir $@))
|
2012-04-02 11:42:09 +00:00
|
|
|
|
2012-04-09 01:22:55 +00:00
|
|
|
|
2012-04-02 11:42:09 +00:00
|
|
|
all: $(ALL)
|
2012-04-09 01:22:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -vf $(ALL)
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all clean
|