forked from source-academy/sicp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·33 lines (23 loc) · 2.59 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
all: clean web pdf # epub
web:
$(MAKE) -C rails javascript
# If you exceed the TeX memory capacity on MikTeX:
# http://blog.analogmachine.org/2013/08/12/how-to-increase-miktex-2-9-memory/
pdf:
npm start
cd latex && latexmk -pdf -pdflatex="pdflatex --synctex=1" -f sicpjs
epub:
npm start epub
cd latex && pandoc sicpjs.tex --listings -o sicp.epub --toc --epub-chapter-level=3 --number-sections --metadata=title:"Structure and Interpretation of Computer Programs (JavaScript Adaptation)" --css ../css/sicp.css --epub-cover-image=../rails/public/chapters/coverpage.png --epub-embed-font=../epub3/fonts/STIXGeneral-Bold-subset.woff --epub-embed-font=../epub3/fonts/STIXGeneral-Italic-subset.woff --epub-embed-font=../epub3/fonts/STIXGeneral-Regular-subset.woff --epub-embed-font=../epub3/fonts/STIXIntegralsD-Regular.woff --epub-embed-font=../epub3/fonts/STIXSizeFiveSym-Regular.woff --epub-embed-font=../epub3/fonts/STIXSizeFourSym-Regular.woff --epub-embed-font=../epub3/fonts/STIXSizeOneSym-Regular.woff --epub-embed-font=../epub3/fonts/STIXSizeThreeSym-Regular.woff --epub-embed-font=../epub3/fonts/STIXSizeTwoSym-Regular.woff --epub-embed-font=../epub3/fonts/dejamono-r-subset.woff --epub-embed-font=../epub3/fonts/dejasans-b-arrows.woff --epub-embed-font=../epub3/fonts/incons-r-subset.woff --epub-embed-font=../epub3/fonts/incons-rb-subset.woff --epub-embed-font=../epub3/fonts/incons-ri-subset.woff --epub-embed-font=../epub3/fonts/jsMath-cmex10-subset.woff --epub-embed-font=../epub3/fonts/linbio-r-subset.woff --epub-embed-font=../epub3/fonts/linbio-rb-subset.woff --epub-embed-font=../epub3/fonts/linbio-ri-subset.woff --epub-embed-font=../epub3/fonts/linlib-as-subset.woff --epub-embed-font=../epub3/fonts/linlib-r-subset.woff --epub-embed-font=../epub3/fonts/linlib-rb-subset.woff --epub-embed-font=../epub3/fonts/linlib-ri-subset.woff
svg_pdf:
./svg_to_pdf.sh
clean:
rm -rf rails-html
$(MAKE) -C rails clean
rm -rf latex
install: all
cp latex/sicpjs.pdf latex/sicp.epub rails-html; cd rails-html; scp -r * [email protected]:public_html; echo "check the website and make sure everything works: https://sicp.comp.nus.edu.sg"
deploy_to_staging:
cp latex/sicpjs.pdf latex/sicp.epub rails-html; cd rails-html; scp -r * [email protected]:public_html/staging; echo "check the website and make sure everything works: https://sicp.comp.nus.edu.sg"
tocs1101s: all
cp latex/sicpjs.pdf latex/sicp.epub rails-html; cd rails-html; scp -r * [email protected]:web1_public_html/. ; echo "now: ssh [email protected] and: "; echo "scp -r web1_public_html/* [email protected]:public_html"