-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
53 lines (37 loc) · 1.85 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
STYLESHEETS_DIR = ~/src/mathbook/xsl
html:
xsltproc --xinclude -stringparam publisher pub.ptx $(STYLESHEETS_DIR)/pretext-html.xsl class-notes.xml
#
# Still working on this; custom css in the future.
#
# xsltproc --xinclude --stringparam html.knowl.example no --stringparam html.knowl.proof no -stringparam publisher pub.ptx -stringparam html.css.server http://hammond.math.wichita.edu/ $(STYLESHEETS_DIR)/pretext-html.xsl class-notes.xml
all: html pdf
colorscheme:
xsltproc --xinclude --stringparam html.css.file "pretext-manitoba.css" $(STYLESHEETS_DIR)/pretext-html.xsl class-notes.ptx
tex:
xsltproc --xinclude ./xsl/latex.xsl class-notes.ptx > discrete-class-notes.tex
pdf: tex
pdflatex discrete-class-notes.tex && pdflatex discrete-class-notes.tex
clean:
rm -f *.out *.toc *.html *.aux *.log discrete-class-notes.pdf discrete-class-notes.tex
publish-to-web: html
rsync -zartv --include "*/" --include="*.html" --exclude="*" ./ ~/public_html/class-notes
publish-to-321: html
rsync -zartv --include "*/" --include="*.html" --exclude="*" ./ ~/public_html/math321
staging: html
rsync -zartv --include "*/" --include="*.html" --exclude="*" ./ ~/public_html/notes-staging
publish:
ssh hammond@alonzo.math.wichita.edu 'cd src/class-notes && git pull && make publish-to-web'
images:
~/src/mathbook/pretext/pretext -vv -c latex-image -f svg -d ~/src/class-notes/assets ~/src/class-notes/source/class-notes.ptx
validate:
xsltproc --xinclude ~/src/mathbook/schema/pretext-validation-plus.xsl ~/src/class-notes/source/class-notes.ptx
# Here's the rsync command that probably works for me.
# rsync -zartv --include "*/" --include="*.html" --exclude="*" ./ ~/public_html/notes-staging
update-the-webs:
echo "Updating wichita.edu/discretebook"
git checkout master
make publish-to-web
echo "Updating wichita.edu/discreteOnline"
git checkout onlineCourse
make online