Skip to content

Instantly share code, notes, and snippets.

@simonklee
Created October 30, 2010 10:36
Show Gist options
  • Save simonklee/655179 to your computer and use it in GitHub Desktop.
Save simonklee/655179 to your computer and use it in GitHub Desktop.
CC = pdflatex
BIB = bibtex
VIEW = epdfview
NAME = ubicomp2010
FLAGS =
.PHONY: all clean view
.PRECIOUS: %.pdf
all: $(NAME).pdf
%.pdf: $(NAME).tex
@echo ' CC $@'
@$(CC) $(FLAGS) $<
@$(BIB) $(FLAGS) $(NAME)
for number in 1 2 ; do\
$(CC) $(FLAGS) $< ;\
done
view: $(NAME).pdf
@$(VIEW) $<
clean:
rm -f *.aux *.out *.log *.tmp *.tui *.bbl *.blg *.mp *.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment