You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/04/25 20:23:20 UTC
svn commit: r1330464 - /incubator/mesos/trunk/src/Makefile.am
Author: benh
Date: Wed Apr 25 18:23:19 2012
New Revision: 1330464
URL: http://svn.apache.org/viewvc?rev=1330464&view=rev
Log:
Remove old jars and eggs (contributed by Charles Reiss).
Modified:
incubator/mesos/trunk/src/Makefile.am
Modified: incubator/mesos/trunk/src/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/Makefile.am?rev=1330464&r1=1330463&r2=1330464&view=diff
==============================================================================
--- incubator/mesos/trunk/src/Makefile.am (original)
+++ incubator/mesos/trunk/src/Makefile.am Wed Apr 25 18:23:19 2012
@@ -511,10 +511,13 @@ maven-install: $(MESOS_JAR) $(MESOS_SOUR
PHONY_TARGETS += maven-install
endif # HAS_JAVA
+# We remove mesos-*.jar here to make sure any older versions of the
+# jar are removed.
clean-java:
-rm -rf java/classes
-rm -f examples/java/*.class
-rm -f java/jni/org_apache_mesos*.h
+ -rm -f mesos-*.jar
PHONY_TARGETS += clean-java
@@ -587,11 +590,15 @@ endif # HAS_PYTHON
# python/native' because creating a distribution can eliminate write
# permissions for the owner which are conserved even after we 'cp -p'
# so we won't be able to delete the files until we update permissions.
+#
+# We remove mesos-*.egg here to make sure any older versions of the
+# egg or versions for different architectures are removed.
clean-python:
test "$(top_srcdir)" = "$(top_builddir)" || \
(chmod -R u+w python/native; \
rm -rf python/src/mesos.py python/native)
-rm -rf python/src/mesos.egg-info python/build
+ -rm -f python/dist/mesos-*.egg
PHONY_TARGETS += clean-python