Skip to content

Commit

Permalink
simplifies makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ickc committed May 8, 2016
1 parent 021eeba commit d197d1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SOURCES=index.md
COMPILED=index.html index-html5.html index.tex index.pdf
TEMPLATEPATH=./templates/
FILTERPATH=./py/
SOURCES:=index.md
COMPILED:=index.html index-html5.html index.tex index.pdf
TEMPLATEPATH:=./templates/
FILTERPATH:=./py/

all: $(COMPILED)

Expand Down
12 changes: 6 additions & 6 deletions makefile-local
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
SOURCES=index.md
COMPILED=index.html index-html5.html index.tex index.pdf
SOURCES:=index.md
COMPILED:=index.html index-html5.html index.tex index.pdf

all: $(SOURCES) $(COMPILED)

index.html: $(SOURCES)
pandoc -s --toc --mathjax -o test-local.html $(SOURCES)
pandoc -s --toc --mathjax -o test-local.html $<
index-html5.html: $(SOURCES)
pandoc -s --toc --mathjax -t html5 -o test-local-html5.html $(SOURCES)
pandoc -s --toc --mathjax -t html5 -o test-local-html5.html $<
index.tex: $(SOURCES)
pandoc -s --toc --filter=pandoc-amsthm.py -o test-local.tex $(SOURCES)
pandoc -s --toc --filter=pandoc-amsthm.py -o test-local.tex $<
index.pdf: $(SOURCES)
pandoc -s --toc --filter=pandoc-amsthm.py -o test-local.pdf $(SOURCES)
pandoc -s --toc --filter=pandoc-amsthm.py -o test-local.pdf $<

0 comments on commit d197d1f

Please sign in to comment.