summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ac94abc7..e5311f29 100644
--- a/Makefile
+++ b/Makefile
@@ -24,12 +24,19 @@
# weedle (16aug06) - 1.6.2
+ifeq ($(wildcard /sbin/md5),/sbin/md5)
+# os x
+MD5SUM := /sbin/md5
+else
+MD5SUM := md5sum
+endif
+
release: docs
python ./setup.py sdist --formats=zip
python ./setup.py sdist --formats=gztar
python ./setup.py bdist_egg
zip -r dist/docs.zip docs && rm -rf docs
- cd dist && md5 paramiko*.zip *.gz > md5-sums
+ cd dist && $(MD5SUM) paramiko*.zip *.gz > md5-sums
docs: always