Skip to content

Commit

Permalink
basic cleanup, make it work on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan D. Payne committed Jan 18, 2013
1 parent 0f569a5 commit adca7e5
Showing 1 changed file with 27 additions and 11 deletions.
38 changes: 27 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
ifeq ($(TARGET_OS),linux)
UNAME= $(shell uname)
LATEX= pdflatex
BIBTEX= bibtex
.SUFFIXES: .pdf .tex .aux

DOCS= guide.pdf
TEX= guide.tex

ifeq ($(UNAME),Linux)
VIEWER="evince"
else
else ifeq ($(UNAME),Darwin)
VIEWER="open"
else
VIEWER="C:\Program Files (x86)\Foxit Software\Foxit Reader\Foxit Reader.exe"
endif

default: compile display clean
all: $(DOCS)

compile:
pdflatex guide.tex
$(DOCS): $(TEX)

.tex.pdf:
$(LATEX) $<
#$(BIBTEX) $*
$(LATEX) $<
echo "----- only worry about warnings after this line -----"
$(LATEX) $<

display:
$(VIEWER) guide.pdf
$(VIEWER) $(DOCS)

clean:
rm guide.pdf
rm *.aux
rm *.log
rm *.lof

rm -f $(DOCS)
make clear

clear:
rm -f *.aux *.log *.toc *.dvi *.bbl *.blg *.lot *.lof *.out *.brf *.lol *~

0 comments on commit adca7e5

Please sign in to comment.