forked from AllenDowney/ModSimPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
76 lines (57 loc) · 1.85 KB
/
Makefile
File metadata and controls
76 lines (57 loc) · 1.85 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
LATEX = latex
DVIPS = dvips
PDFFLAGS = -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress \
-dCompressPages=true -dUseFlateCompression=true \
-dEmbedAllFonts=true -dSubsetFonts=true -dMaxSubsetPct=100
%.dvi: %.tex
$(LATEX) $<
%.ps: %.dvi
$(DVIPS) -o $@ $<
%.pdf: %.ps
ps2pdf $(PDFFLAGS) $<
all: book.tex
pdflatex $(PDFFLAGS) --shell-escape book
makeindex book.idx
evince book.pdf
hevea:
#sed 's/\(figs\/[^.]*\).\(pdf\|png\)/\1.eps/'
cp book.tex ModSimPy.tex
rm -rf html
mkdir html
hevea -O -e latexonly htmlonly ModSimPy
# the following greps are a kludge to prevent imagen from seeing
# the definitions in latexonly, and to avoid headers on the images
grep -v latexonly ModSimPy.image.tex > a; mv a ModSimPy.image.tex
grep -v fancyhdr ModSimPy.image.tex > a; mv a ModSimPy.image.tex
imagen -png ModSimPy
hacha ModSimPy.html
cp up.png next.png back.png html
mv index.html ModSimPy.css ModSimPy*.html html
mv ModSimPy*.png *motif.gif html
DEST = /home/downey/public_html/greent/ModSimPy/
DIST_FILES = ModSimPy.pdf
distrib:
cp book.pdf ModSimPy.pdf
rsync -a $(DIST_FILES) $(DEST)
#chmod -R o+r $(DEST)/*
cd /home/downey/public_html/greent; sh back
plastex:
# Before running plastex, we need the current directory in PYTHONPATH
# export PYTHONPATH=$PYTHONPATH:.
# rm -rf /home/downey/ModSimPy/book/.svn
plastex --renderer=DocBook --theme=book --image-resolution=300 --filename=book.xml book.tex
# rm -rf /home/downey/ModSimPy/trunk/book/.svn
xxe:
xmlcopyeditor ~/ModSimPy/book/book/book.xml &
#~/Downloads/xxe-perso-4_8_0/bin/xxe book/book.xml
lint:
xmllint -noout book/book.xml
OREILLY = atlas
oreilly:
rsync -a book/ $(OREILLY)
rsync -a figs/* $(OREILLY)/figs/
cd $(OREILLY); git add .
cd $(OREILLY); git commit -m "Automated check in."
cd $(OREILLY); git push
clean:
rm -f *~ *.aux *.log *.dvi *.idx *.ilg *.ind *.toc