-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (36 loc) · 1.57 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
RSYNCFLAGS = "-rv --delete"
all : Simply_Lift.pdf
html :
@echo [Building HTML]
rm -rf Simply_Lift
mkdir Simply_Lift
cp -R templates/css Simply_Lift/
cp -R templates/scripts Simply_Lift/
python elyxer.py --splitpart 2 --defaultbrush "scala" --template templates/template.html Simply_Lift.lyx Simply_Lift/index.html
tar cvzf Simply_Lift.html.tgz Simply_Lift/
htmlblob :
@echo [Building HTML]
rm -rf Simply_Lift
mkdir Simply_Lift
cp -R templates/css Simply_Lift/
cp -R templates/scripts Simply_Lift/
python elyxer.py --defaultbrush "scala" --template templates/template.html Simply_Lift.lyx Simply_Lift/index.html
tar cvzf Simply_Lift.html.tgz Simply_Lift/
pdf : Simply_Lift.pdf
Simply_Lift.pdf : Simply_Lift.aux
Simply_Lift.tex : *.lyx
@echo [Exporting PDFLaTeX]
@lyx -e pdflatex Simply_Lift.lyx
Simply_Lift.aux : Simply_Lift.tex
@echo [Building PDF]
pdflatex Simply_Lift.tex
makeindex Simply_Lift.idx
@bash -c "while pdflatex Simply_Lift.tex && grep -q \"Rerun to get cross-references right\" Simply_Lift.log ; do echo \" Rebuilding references\" ; done"
@echo [Built PDF]
clean:
rm -f *.tex images/*.eps *.toc *.aux *.dvi *.idx *.lof *.log *.out *.toc *.lol Simply_Lift.pdf *.ilg *.ind *.tgz
rm -f */*.tex */*.toc */*.aux */*.dvi */*.idx */*.lof */*.log */*.out */*.toc */*.lol */*.ilg */*.ind */*.tgz
rm -rf Simply_Lift/
#install: pdf html
# rsync $(RSYNC_FLAGS) Simply_Lift.pdf Simply_Lift.html.tgz lion.harpoon.me:/home/scalatools/hudson/www/exploring/downloads/
# rsync $(RSYNC_FLAGS) Simply_Lift/ lion.harpoon.me:/home/scalatools/hudson/www/exploring/Simply_Lift/