summaryrefslogtreecommitdiff
path: root/pexpect/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pexpect/Makefile')
-rw-r--r--pexpect/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/pexpect/Makefile b/pexpect/Makefile
new file mode 100644
index 0000000..7d5e7f1
--- /dev/null
+++ b/pexpect/Makefile
@@ -0,0 +1,50 @@
+SHELL = /bin/sh
+
+VERSION= 0.8
+#DOCGENERATOR= happydoc
+DOCGENERATOR= pydoc -w
+MANIFEST_LINES != cat MANIFEST
+
+all: dist examples doc
+
+# *.py README.txt MANIFEST
+
+dist/pexpect-$(VERSION).tar.gz: $(MANIFEST_LINES)
+ rm -f *.pyc
+ rm -f pexpect-*.tgz
+ rm -f dist/pexpect-$(VERSION).tar.gz
+ /usr/bin/env python setup.py sdist
+
+install:
+ make distutil
+ /usr/bin/env python setup.py install
+
+dist: pexpect-current.tgz
+
+pexpect-current.tgz: dist/pexpect-$(VERSION).tar.gz
+ rm -f pexpect-current.tgz
+ cp dist/pexpect-$(VERSION).tar.gz ./pexpect-current.tgz
+
+doc: doc.tgz
+
+doc.tgz: doc/*
+ rm -f doc.tgz
+ $(DOCGENERATOR) `echo "$(MANIFEST_LINES)" | sed -e "s/\.py//g"`
+ mv *.html doc/
+ tar zcf doc.tgz doc/
+
+examples: examples.tgz
+
+examples.tgz: examples/*
+ rm -f examples.tgz
+ tar zcf examples.tgz examples/
+
+clean:
+ rm -f *.pyc
+ rm -f pexpect-*.tgz
+ rm -f dist/pexpect-$(VERSION).tar.gz
+ rm -f examples.tgz
+ rm -f doc.tgz
+ rm -f python.core
+ rm -f core
+