exit 0 for for runtests, #test failures dominate
[third_party/pexpect] / Makefile
1
2 #
3 # PEXPECT LICENSE
4 #
5 #     This license is approved by the OSI and FSF as GPL-compatible.
6 #         http://opensource.org/licenses/isc-license.txt
7 #
8 #     Copyright (c) 2012, Noah Spurrier <noah@noah.org>
9 #     PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY
10 #     PURPOSE WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE
11 #     COPYRIGHT NOTICE AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES.
12 #     THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13 #     WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14 #     MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15 #     ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16 #     WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17 #     ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 #     OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 #
20
21 SHELL = /bin/sh
22
23 VERSION=2.5
24 #DOCGENERATOR= happydoc
25 DOCGENERATOR=pydoc -w
26 # This is for GNU Make. This does not work on BSD Make.
27 #MANIFEST_LINES := $(shell cat MANIFEST)
28 # This is for BSD Make. This does not work on GNU Make.
29 #MANIFEST_LINES != cat MANIFEST
30 # I hate Makefiles.
31
32 all: merge_templates docs dist
33
34 merge_templates:
35         python tools/merge_templates.py
36
37 docs: doc/index.template.html doc/examples.html doc/clean.css doc/email.png
38         make clean_docs
39         make merge_templates
40         #-rm -f `ls doc/*.html | sed -e 's/doc\/index\.template\.html//' | sed -e 's/doc\/index\.html//'` 
41         #$(DOCGENERATOR) `echo "$(MANIFEST_LINES)" | sed -e "s/\.py//g" -e "s/setup *//" -e "s/README *//"`
42         #mv *.html doc/
43         cd doc;\
44         $(DOCGENERATOR) ../pexpect.py ../pxssh.py ../fdpexpect.py ../FSM.py ../screen.py ../ANSI.py;\
45         cd ..;\
46 #       tar zcf pexpect-doc-$(VERSION).tar.gz doc/
47
48 dist: dist/pexpect-$(VERSION).tar.gz
49
50 # $(MANIFEST_LINES)
51
52 dist/pexpect-$(VERSION).tar.gz:
53         rm -f *.pyc
54         rm -f pexpect-$(VERSION).tar.gz
55         rm -f dist/pexpect-$(VERSION).tar.gz
56         python setup.py sdist
57
58 clean: clean_docs
59         -rm -f MANIFEST
60         -rm -rf __pycache__
61         -rm -f *.pyc
62         -rm -f tests/*.pyc
63         -rm -f tools/*.pyc
64         -rm -f dist/*.pyc
65         -rm -f *.cover
66         -rm -f tests/*.cover
67         -rm -f tools/*.cover
68         -rm -f dist/pexpect-$(VERSION).tar.gz
69         -cd dist;rm -rf pexpect-$(VERSION)/
70         -rm -f pexpect-$(VERSION).tar.gz
71         -rm -f pexpect-$(VERSION)-examples.tar.gz
72         -rm -f pexpect-$(VERSION)-doc.tar.gz
73         -rm -f python.core
74         -rm -f core
75         -rm -f setup.py
76         -rm -f doc/index.html
77
78 clean_docs:
79         -rm -f `ls doc/*.html | sed -e 's/doc\/index\.template\.html//' | sed -e 's/doc\/examples\.html//'`
80
81