Index: /applications/editors/josm/debian/rules
===================================================================
--- /applications/editors/josm/debian/rules	(revision 15973)
+++ /applications/editors/josm/debian/rules	(revision 15974)
@@ -15,7 +15,4 @@
 	dh_testdir
 
-	# Add here commands to compile the package.
-	# $(MAKE)
-
 	touch build-stamp
 
@@ -28,13 +25,9 @@
 
 	# Add here commands to clean up after the build process.
-	-$(MAKE) distclean
 	for dir in `ls plugins/*/build.xml | sed s,/build.xml,,`; do \
-	    echo "-------- Cleanup Plugin '$$dir'"; \
-	    cd $$dir; \
-	    rm -f dist/*.jar; \
-	    rm -f ../../dist/$dir.jar; \
-	    rm -f *.log; \
-	    ant -q clean; \
-	    cd ../..; \
+	    ( cd "$$dir"; \
+	      echo "-------- Cleanup Plugin '$$dir' ..."; \
+	      rm -f dist/*.jar ../../dist/$dir.jar *.log ; \
+	      ant -q clean ); \
 	done
 	cd core;   ant -q clean
