Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (36 sloc) 1.57 KB
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/