[PATCH] Makefile: learn to build the package and make it the default

Nicolas Sebrecht nicolas.s-dev at laposte.net
Sat Jan 15 20:09:56 GMT 2011


It's a bit surprising to start the clean process when typing "make".
Create a build process and make it the default.

This will also help not deleting something VERY important.

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
---
 Makefile |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index bcacd03..f66b79d 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,14 @@ VERSION=4.0.16
 TARGZ=offlineimap_$(VERSION).tar.gz
 SHELL=/bin/bash
 
+all: build
+
+build:
+	python setup.py build
+	@echo
+	@echo "Build process finished, run 'python setup.py install' to install" \
+		"or 'python setup.py --help' for more information".
+
 clean:
 	-python setup.py clean --all
 	-rm -f `find . -name "*~"`
-- 
1.7.4.rc1.220.g438e4





More information about the OfflineIMAP-project mailing list