Skip to content

Commit

Permalink
Change bash scripts to makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ickc committed May 6, 2016
1 parent 61d068f commit 222c1fc
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 16 deletions.
8 changes: 0 additions & 8 deletions build-local.sh

This file was deleted.

8 changes: 0 additions & 8 deletions build.sh

This file was deleted.

3 changes: 3 additions & 0 deletions make-local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
make -f makefile-local
3 changes: 3 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
make
13 changes: 13 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SOURCES=index.md
COMPILED=index.html index-html5.html index.tex index.pdf

all: $(SOURCES) $(COMPILED)

index.html: $(SOURCES)
pandoc -s --toc --template=./templates/pandoc-amsthm.html --mathjax -o index.html $(SOURCES)
index-html5.html: $(SOURCES)
pandoc -s --toc --template=./templates/pandoc-amsthm.html5 --mathjax -o index-html5.html $(SOURCES)
index.tex: $(SOURCES)
pandoc -s --toc --template=./templates/pandoc-amsthm.latex --filter=./py/pandoc-amsthm.py -o index.tex $(SOURCES)
index.pdf: $(SOURCES)
pandoc -s --toc --template=./templates/pandoc-amsthm.latex --filter=./py/pandoc-amsthm.py -o index.pdf $(SOURCES)
13 changes: 13 additions & 0 deletions makefile-local
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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)
index-html5.html: $(SOURCES)
pandoc -s --toc --mathjax -t html5 -o test-local-html5.html $(SOURCES)
index.tex: $(SOURCES)
pandoc -s --toc --filter=pandoc-amsthm.py -o test-local.tex $(SOURCES)
index.pdf: $(SOURCES)
pandoc -s --toc --filter=pandoc-amsthm.py -o test-local.pdf $(SOURCES)

0 comments on commit 222c1fc

Please sign in to comment.