Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
markdown-dissertation/Makefile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
40 lines (31 sloc)
1.13 KB
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
# Makefile for Markdown files via Pandoc | |
# Modified for the Final Year Project build | |
# TODO: ------------- (If we have multiple Inputs) ------------- | |
# If we have multiple inputs we we can stick them here | |
# NOTE, It is important they are in order | |
# Again we can pass this through the command line | |
SOURCES = Frontpage.md EG-Intro.md Lorum.md References.md | |
TARGET = Dissertaion.pdf | |
#Report Export Options | |
PDF_PANDOC_OPTIONS = --filter=pandoc-citeproc --template=Template/disso.latex --top-level-division=chapter | |
TEX_PANDOC_OPTIONS = --template=Template/disso.latex --top-level-division=chapter --biblatex | |
#Default Sources to the input provide | |
ifndef SOURCES | |
SOURCES = $< | |
endif | |
ifndef TARGET | |
TARGET = $@ | |
endif | |
#Build a PDF from the relevant sources | |
#%.pdf: %.md | |
%.pdf: %.md | |
# Old way of doing it, now dealt with through target | |
# #pandoc $(PANDOC_OPTIONS) -o $@ $< | |
pandoc $(PDF_PANDOC_OPTIONS) $(SOURCES) -o $(TARGET) | |
%.html: %.md | |
pandoc $(HTML_PANDOC_OPTIONS) $(SOURCES) -o $(TARGET) | |
%.tex: %.md | |
# Old way of doing it, now dealt with through target | |
# #pandoc $(PANDOC_OPTIONS) -o $@ $< | |
pandoc $(TEX_PANDOC_OPTIONS) -s $(SOURCES) -o Foo.tex | |
#$(TARGET) |