-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
70 lines (60 loc) · 2.15 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright (C) 2009-2014 by Tim Molteno <[email protected]>
#
# This file may be redistributed and/or
# modified under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of the
# License, or (at your option) any later version. To view a copy of this
# license, see http://www.gnu.org/licenses/ or send a letter to
# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
# To create everything necessary to use the SympyTeX package, type
#
# make all
# and the files sympytex.sty and sympytex.py will be created
#
# Requires makecmds.sty, for Debian-based distributions try
# aptitude install texlive-latex-extra python-matplotlib
#
# Python3.4 support.
#
# aptitude install python3.4 python3.4-matplotlib
#
# Now install sympy from source (or other method)
PYTHON=python3.4
all: clean
latex sympytexpackage.ins
docs:
rm -f *.sout
pdflatex sympytexpackage.dtx
mkindex sympytexpackage.idx
${PYTHON} sympytexpackage.sympy
pdflatex sympytexpackage.dtx
# This builds the example document. The example uses matplotlib (aptitude install python-matplotlib)
test:
pdflatex example.tex
${PYTHON} example.sympy
pdflatex example.tex
ctan:
cp README.md README
/home/tim/Downloads/ctan/scripts/ctanify/ctanify sympytexpackage.ins README sympytexpackage.pdf example.pdf
clean:
rm -f sympytex.* example.s* rm sympytexpackage.dvi sympytexpackage.aux
dist:
tar -cf SympyTeX.tar sympytex.sty sympytex.py sympytexpackage.ins sympytexpackage.dtx example.tex README TODO Makefile
gzip -9 SympyTeX.tar
DOCS=/usr/share/doc/latex-sympytex
deb: dist
rm -rf debian/usr
rm -rf debian/DEBIAN
mkdir -p debian/usr/share/texmf-texlive/tex/latex/sympytex
cp sympytex.sty debian/usr/share/texmf-texlive/tex/latex/sympytex
mkdir -p debian/DEBIAN
cp debian/control debian/DEBIAN
mkdir -p debian${DOCS}
cp debian/copyright debian${DOCS}
cp example.tex debian${DOCS}
find ./debian -type d | xargs chmod 755
fakeroot dpkg-deb --build debian
mv debian.deb latex-sympytex_1.0-1_all.deb
deb2: dist
dh_make -p latex-sympytex_1.0-1 -e [email protected] -f SympyTeX.tar.gz