Skip to content

Instantly share code, notes, and snippets.

@SammysHP
Created November 3, 2014 17:57
Show Gist options
  • Select an option

  • Save SammysHP/7481980171957647c5d8 to your computer and use it in GitHub Desktop.

Select an option

Save SammysHP/7481980171957647c5d8 to your computer and use it in GitHub Desktop.
Simple makefile for LaTeX documents
BASENAME = skript
all: pdf
pdf:
latexmk -pdf $(BASENAME)
live:
latexmk -pdf -pvc $(BASENAME)
clean:
latexmk -c $(BASENAME)
rm $(BASENAME).thm
clean-all: clean
latexmk -C $(BASENAME)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment