-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (63 loc) · 2.18 KB
/
Makefile
File metadata and controls
69 lines (63 loc) · 2.18 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
# Makefile for matplotlib
# Copyright (C) 2003 <[email protected]>
# $Header$
# $Log$
# Revision 1.7 2003/10/18 17:54:26 jdh2358
# fixed interactive2 and several small bugs
#
# Revision 1.6 2003/09/30 16:15:33 jdh2358
# added legend
#
# Revision 1.5 2003/09/22 14:04:46 jdh2358
# small bugfixes
#
# Revision 1.4 2003/09/15 17:54:16 jdh2358
# multiple backed support take II
#
# Revision 1.3 2003/05/12 19:56:54 jdh2358
# update license to version 2 and the docs
#
# Revision 1.2 2003/05/12 15:53:48 jdh2358
# update matplotlib
#
# Revision 1.1 2003/05/12 15:50:11 jdh2358
# adding Makefile, releases, docs
#
PYTHON = /usr/local/bin/python2.3
PYDOC = /usr/local/bin/pydoc
VERSION = `${PYTHON} setup.py --version`
DISTFILES = INSTALL README TODO LICENSE CHANGELOG Makefile GOALS INTERACTIVE \
MANIFEST.in matplotlib examples setup.py
MODULES = matplotlib.afm matplotlib.axes matplotlib.artist \
matplotlib.backend_bases matplotlib.cbook matplotlib.lines \
matplotlib.patches matplotlib.matlab matplotlib.mlab \
matplotlib.backends.backend_gtk matplotlib.backends.backend_gd \
matplotlib.backends.backend_ps matplotlib.backends.backend_template
RELEASE = matplotlib-${VERSION}
clean:
${PYTHON} setup.py clean;\
find . \( -name "*~" -o -name "*.pyc" \) | xargs rm -f;\
find examples -name "*.png" | xargs rm -f;\
find matplotlib -name "*.png" | xargs rm -f;
htmldocs:
rm -rf htdocs/matplotlib;\
cp -a matplotlib htdocs/;\
cp examples/*.py htdocs/examples;\
rm -f docs/*.html;\
${PYDOC} -w ${MODULES};\
mv *.html docs/
cd htdocs;\
${PYTHON} process_docs.py;\
${PYTHON} convert.py;\
tar cvfz site.tar.gz *.html screenshots tut examples
release: ${DISTFILES}
rm -rf ${RELEASE};\
mkdir ${RELEASE};\
cp -a ${DISTFILES} ${RELEASE}/;\
rm -rf ${RELEASE}/CVS ${RELEASE}/matplotlib/CVS ${RELEASE}/examples/CVS ${RELEASE}/examples/figures/* ${RELEASE}/examples/*.png ${RELEASE}/examples/*.pyc ${RELEASE}/matplotlib/*.png ${RELEASE}/matplotlib/*.pyc ;\
tar cvfz releases/${RELEASE}.tar.gz ${RELEASE}/ --dereference;\
python setup.py bdist_wininst;\
cp dist/${RELEASE}.win32.exe releases/;\
zip -r ${RELEASE}.zip ${RELEASE};\
mv ${RELEASE}.zip releases/;\
rm -rf ${RELEASE};