Skip to content

Instantly share code, notes, and snippets.

@mauricioaniche
Created February 24, 2021 20:44
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 mauricioaniche/2361267697c91801938c5607004e4daa to your computer and use it in GitHub Desktop.
Save mauricioaniche/2361267697c91801938c5607004e4daa to your computer and use it in GitHub Desktop.
BASE_NAME = paper
INPUTS = $(wildcard *.tex) *.bib
LATEX = latex
PDFLATEX = pdflatex
BIBTEX = bibtex
MAKEINDEX = makeindex
pdf: $(BASE_NAME).pdf
ps: $(BASE_NAME).ps
$(BASE_NAME).pdf: $(BASE_NAME).tex $(INPUTS)
$(PDFLATEX) $<
$(BIBTEX) $(BASE_NAME)
$(PDFLATEX) $<
$(PDFLATEX) $<
clean:
rm -f $(BASE_NAME)*.ps $(BASE_NAME)*.dvi *.log \
*.aux *.blg *.toc *.brf *.ilg *.ind \
missfont.log $(BASE_NAME)*.bbl $(BASE_NAME)*.pdf $(BASE_NAME)*.out \
$(BASE_NAME)*.lof $(BASE_NAME)*.lot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment