Skip to content
Permalink
70f25eeaba
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 40 lines (27 sloc) 1.06 KB
# Makefile for Markdown files via Pandoc
# Modified for the Final Year Project build
# You can uncomment change this to the Top level file, if you want to
# build using just Make Alternativly, Make <filename>.pdf SOURCES =
# Dissertation.md TARGET = Dissertaion.pdf
#If you move the template directory, update the link here
TEMPLATE_DIR = Template
# ----------- DO NOT MODIFY BELOW HERE --------------
TEMPLATE_FILE = $(TEMPLATE_DIR)/disso.latex
#Report Export Options
PDF_PANDOC_OPTIONS = --filter=pandoc-include --filter=pandoc-citeproc --template=$(TEMPLATE_FILE) --top-level-division=chapter
TEX_PANDOC_OPTIONS = --template=$(TEMPLATE_FILE) --top-level-division=chapter --biblatex --filter=pandoc-include
#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
pandoc $(PDF_PANDOC_OPTIONS) $(SOURCES) -o $(TARGET)
%.html: %.md
pandoc $(HTML_PANDOC_OPTIONS) $(SOURCES) -o $(TARGET)
%.tex: %.md
pandoc $(TEX_PANDOC_OPTIONS) -s $(SOURCES) -o $(TARGET)