Skip to content

Instantly share code, notes, and snippets.

@rhinoceraptor
Created December 2, 2015 16:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhinoceraptor/8b7e9bf650db6396e27e to your computer and use it in GitHub Desktop.
Save rhinoceraptor/8b7e9bf650db6396e27e to your computer and use it in GitHub Desktop.
LaTeX Makefile
export SHELL=/bin/bash
TARGET=resume
LATEX=xelatex
FLAGS=-interaction nonstopmode > $(LATEX)_build_log.out
OPEN=xdg-open >/dev/null 2>&1
make: clean build view
clean:
rm -f *.out *.aux *.log $(TARGET).pdf
build:
$(LATEX) $(FLAGS) $(TARGET).tex
view: $(TARGET).pdf
$(OPEN) $(TARGET).pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment