forked from ai-se/HDP_TSE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (42 loc) · 1.53 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Src=main_tse
Name=15tune
Bib=ref.bib ref_raleigh.bib
all : dirs tex bib tex tex embedfonts done
publish : dirs all
cp $(HOME)/tmp/$(Src).pdf pdf/$(Name).pdf
chmod a+r pdf/$(Name).pdf
cp pdf/$(Name).pdf $(HOME)/gits/timm/timm.github.io/pdf
cd $(HOME)/gits/timm/timm.github.io/pdf; git add * ; cd ..; make typo
commit:; - git status; git commit -a; git push origin master
typo: ; - git status; git commit -am "typo"; git push origin master
update:; - git pull origin master
status:; - git status
gitting:
git config --global credential.helper cache
git config credential.helper 'cache --timeout=3600'
preview:
open $(HOME)/tmp/$(Src).pdf &
view :
evince $(HOME)/tmp/$(Src).pdf &
skim:
/Applications/Skim.app/Contents/MacOS/Skim $(HOME)/tmp/$(Src).pdf &
one : dirs tex done
ready :
mkdir -p $(HOME)/tmp
done :
@printf "\n\n\n==============================================\n"
@printf "see output in $(HOME)/tmp/$(Src).pdf\n"
@printf "==============================================\n\n\n"
@printf "\n\nWarnings (may be none):\n\n"
grep arning $(HOME)/tmp/${Src}.log
dirs :
- [ ! -d $(HOME)/tmp ] && mkdir $(HOME)/tmp
- [ ! -d pdf ] && mkdir pdf
tex : ready
- pdflatex --shell-escape -output-directory=$(HOME)/tmp $(Src)
embedfonts:
@ gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite \
-sOutputFile=$(HOME)/tmp/$(Src)-embedded.pdf $(HOME)/tmp/$(Src).pdf
@ mv $(HOME)/tmp/$(Src)-embedded.pdf $(HOME)/tmp/$(Src).pdf
bib :
- cp $(Bib) $(HOME)/tmp; cd $(HOME)/tmp; bibtex $(Src)