forked from jonasstein/R-Reference-Card
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (28 loc) · 739 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# set latexfile to the name of the main file without the .tex
latexfile = R-refcard
TEX = pdflatex
$(latexfile).pdf : clean
while ($(TEX) $(latexfile) ; \
grep -q "Rerun to get cross" $(latexfile).log ) do true ; \
done
pdf : $(latexfile).pdf
view : $(latexfile).pdf
acroread $(latexfile).pdf
clean :
rm -f $(latexfile).log
rm -f $(latexfile).out
rm -f $(latexfile).aux
rm -f $(latexfile).bbl
rm -f $(latexfile).blg
rm -f $(latexfile)-blx.bib
rm -f $(latexfile).toc
rm -f *.*~
purge : clean
rm $(latexfile).pdf
spellcheck:
hunspell -l -t -i utf-8 $(latexfile).tex
test:
chktex $(latexfile).tex
upload:
lftp -f upload_pdf.lftp
echo "Now send mail to CRAN@R-project.org subject: CRAN submission R-refcard.pdf"