Commit 87de226b authored by Francois-Rene Rideau's avatar Francois-Rene Rideau
Browse files

Update Makefile so it can produce the talk pdf on Linux

parent 5b004efc
...@@ -2,12 +2,15 @@ UNAME := $(shell uname) ...@@ -2,12 +2,15 @@ UNAME := $(shell uname)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
XPDF = open XPDF = open
endif endif
XPDF ?= xpdf XPDF ?= xpdf -z page
ALLTEX := $(wildcard *.tex *.cls *.sty *.bib *.bst) ALLTEX := $(wildcard *.tex *.cls *.sty *.bib *.bst)
SRC := main.tex ${ALLTEX} SRC := main.tex ${ALLTEX}
OBJ := *.aux *.log *.bbl *.blg OBJ := *.aux *.log *.bbl *.blg
FINAL := main.pdf FINAL := main.pdf
view-talk: talk-outline.pdf
${XPDF} $<
view: ${FINAL} view: ${FINAL}
${XPDF} $< ${XPDF} $<
...@@ -29,13 +32,10 @@ website: main.pdf ...@@ -29,13 +32,10 @@ website: main.pdf
rsync main.pdf common-lisp.net:/project/asdf/public_html/ilc2010draft.pdf rsync main.pdf common-lisp.net:/project/asdf/public_html/ilc2010draft.pdf
# I have not the faintest idea how to check this for errors, etc. # I have not the faintest idea how to check this for errors, etc.
talk-outline.tex: talk-outline.org talk-outline.pdf: talk-outline.org
emacs --eval '(find-file "talk-outline.org")' \ emacs --batch -q \
--eval '(org-export-latex ?l)' \ --eval '(find-file "talk-outline.org")' \
--eval '(org-export-as-pdf ?l)' \
--eval '(save-buffers-kill-terminal)' --eval '(save-buffers-kill-terminal)'
talk-outline.pdf: talk-outline.tex
pdflatex talk-outline
pdflatex talk-outline
.PHONY: clean semiclean view website .PHONY: clean semiclean view website
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment