Skip to content

Commit

Permalink
simplify makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ickc committed May 8, 2016
1 parent 222c1fc commit 021eeba
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
SOURCES=index.md
COMPILED=index.html index-html5.html index.tex index.pdf
TEMPLATEPATH=./templates/
FILTERPATH=./py/

all: $(SOURCES) $(COMPILED)
all: $(COMPILED)

index.html: $(SOURCES)
pandoc -s --toc --template=./templates/pandoc-amsthm.html --mathjax -o index.html $(SOURCES)
pandoc -s --toc --template=$(TEMPLATEPATH)pandoc-amsthm.html --mathjax -o index.html $<
index-html5.html: $(SOURCES)
pandoc -s --toc --template=./templates/pandoc-amsthm.html5 --mathjax -o index-html5.html $(SOURCES)
pandoc -s --toc --template=$(TEMPLATEPATH)pandoc-amsthm.html5 --mathjax -o index-html5.html $<
index.tex: $(SOURCES)
pandoc -s --toc --template=./templates/pandoc-amsthm.latex --filter=./py/pandoc-amsthm.py -o index.tex $(SOURCES)
pandoc -s --toc --template=$(TEMPLATEPATH)pandoc-amsthm.latex --filter=$(FILTERPATH)pandoc-amsthm.py -o index.tex $<
index.pdf: $(SOURCES)
pandoc -s --toc --template=./templates/pandoc-amsthm.latex --filter=./py/pandoc-amsthm.py -o index.pdf $(SOURCES)
pandoc -s --toc --template=$(TEMPLATEPATH)pandoc-amsthm.latex --filter=$(FILTERPATH)pandoc-amsthm.py -o index.pdf $<

0 comments on commit 021eeba

Please sign in to comment.