Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .SUFFIXES :
- .SUFFIXES : .txt .html .tex .pdf
- # You don't need to add your filename here anymore.
- OUTPUT1=$(patsubst %.txt, %.html, $(wildcard *.txt))
- OUTPUT2=$(patsubst %.tex, %.pdf, $(wildcard *.tex))
- all: $(OUTPUT1) $(OUTPUT2)
- .txt.html:
- perl Markdown.pl < $< > $@
- .tex.pdf:
- touch $@
- if test \! -w $@; then chmod u+w $@; fi
- pdflatex $<
- tfpt online $@
- clean:
- rm -f $(OUTPUT1) $(OUTPUT2)
- tidy:
- rm -f *.txt~ *.tex~ *.aux *.log *.out
Add Comment
Please, Sign In to add comment