Skip to content

Instantly share code, notes, and snippets.

@theirix
Created May 31, 2012 17:24
Show Gist options
  • Save theirix/2844878 to your computer and use it in GitHub Desktop.
Save theirix/2844878 to your computer and use it in GitHub Desktop.
LaTeX + BibTeX universal makefile
NAME=report
BIBROOT=$(PWD)/../..
.PHONY: FORCE_MAKE
all: $(NAME).pdf
%.pdf: %.tex FORCE_MAKE
BIBINPUTS=$(BIBROOT) latexmk -pdf -dvi- -ps- $<
clean:
BIBINPUTS=$(BIBROOT) latexmk -C
rm -f $(NAME).bbl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment