Skip to content

Instantly share code, notes, and snippets.

@brodul
Created November 9, 2015 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brodul/b0f753ea8c0c6236fa79 to your computer and use it in GitHub Desktop.
Save brodul/b0f753ea8c0c6236fa79 to your computer and use it in GitHub Desktop.
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