[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[minion-cvs] Add an update target
Update of /home/minion/cvsroot/src/minion
In directory moria.mit.edu:/tmp/cvs-serv11325
Modified Files:
Makefile
Log Message:
Add an update target
Index: Makefile
===================================================================
RCS file: /home/minion/cvsroot/src/minion/Makefile,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- Makefile 6 Jan 2003 11:43:58 -0000 1.31
+++ Makefile 6 Jan 2003 12:42:39 -0000 1.32
@@ -94,6 +94,25 @@
echo "MIXMINION SAYS: Ignore that warning about sys.path--It's taken care of.";\
fi
+update:
+ @$(FINDPYTHON); \
+ PYVER=`$$PYTHON -c 'import sys; print sys.version[:3]'`; \
+ if [ 'x' = "x$(PREFIX)" ] ; then \
+ PFX=`$$PYTHON -c 'import sys; print sys.prefix'`; \
+ LIB=$$PFX/lib/python$$PYVER/site-packages/mixminion; \
+ else \
+ LIB=$(PREFIX)/lib/python$$PYVER/site-packages/mixminion; \
+ fi; \
+ if [ ! -d $$LIB ] ; then \
+ echo "Didn't find an existing installation in $$LIB; bailing."; \
+ elif [ ! -w $$LIB ] ; then \
+ echo "You don't seem to have write access to $$LIB; bailing."; \
+ else \
+ $(MAKE) install; \
+ fi
+
+upgrade: update
+
#======================================================================
# Uninstall target (phony.)