Created
November 10, 2015 23:43
-
-
Save elsehow/8b1321c26b502a1d4796 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is forked from npdoty | |
# https://github.com/npdoty/dissertation | |
# much has been removed from his version | |
# so, if doing something fancy, consult with that first | |
## Markdown extension (e.g. md, markdown, mdown). | |
MEXT = md | |
## All markdown files in the working directory | |
SRC = $(wildcard *.$(MEXT)) | |
BIB = bib/lib.bib | |
## CSL stylesheet (located in the csl folder of the PREFIX directory). | |
CSL = bib/apa.csl | |
PDFS=$(SRC:.md=.pdf) | |
HTML=$(SRC:.md=.html) | |
TEX=$(SRC:.md=.tex) | |
all: $(PDFS) $(HTML) | |
pdf: clean $(PDFS) | |
html: clean $(HTML) | |
tex: clean $(TEX) | |
%.html: %.md | |
pandoc src/index.md -f markdown -t html -s -o dist/dissertation.html --bibliography=$(BIB) --csl=$(CSL) | |
%.pdf: %.md | |
pandoc src/index.md -f markdown -t latex -s -o dist/dissertation.pdf --bibliography=$(BIB) --csl=$(CSL) | |
#references: | |
# #cp $(MENDELEY_BIB) $(BIB) | |
# biber $(BIB) --tool biber.conf | |
# mv library_bibertool.bib $(BIB) | |
clean: | |
rm -f *.html *.pdf *.tex | |
rm -f *.aux *.bcf *.out *.log *.run.xml *.blg | |
# rm library_bibertool.bib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment