From d197d1fc45df9caa9336c71f4e7b039ee4b2195d Mon Sep 17 00:00:00 2001 From: KolenCheung Date: Sat, 7 May 2016 18:09:17 -0700 Subject: [PATCH] simplifies makefiles --- makefile | 8 ++++---- makefile-local | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/makefile b/makefile index 9112e6c..181e9f5 100644 --- a/makefile +++ b/makefile @@ -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) diff --git a/makefile-local b/makefile-local index d7277b5..be25c5a 100644 --- a/makefile-local +++ b/makefile-local @@ -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) \ No newline at end of file + pandoc -s --toc --filter=pandoc-amsthm.py -o test-local.pdf $< \ No newline at end of file