Created
November 9, 2015 15:40
-
-
Save brodul/b0f753ea8c0c6236fa79 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
TEX = pdflatex -shell-escape -interaction=nonstopmode -file-line-error | |
PAN = pandoc --listings -o | |
BIB = bibtex | |
TEXS := $(patsubst %.md,%.md.tex,$(wildcard *.md)) | |
.PHONY: all view clean | |
all: clean diploma.pdf | |
diploma.pdf: $(TEXS) | |
$(TEX) diploma.tex | |
%.md.tex: %.md | |
$(PAN) $@ $< | |
watch: | |
while inotifywait -e close_write *.md diploma.tex zahvala.tex povzetek.tex; do make; done | |
clean: | |
rm *.log *.aux $(TEXS) || : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment