Index: applications/editors/josm/debian/rules
===================================================================
--- applications/editors/josm/debian/rules	(revision 12639)
+++ applications/editors/josm/debian/rules	(revision 15969)
@@ -12,5 +12,5 @@
 
 build: build-stamp 
-build-stamp: clean
+build-stamp: 
 	dh_testdir
 
@@ -29,5 +29,14 @@
 	# 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 ../..; \
+	done
+	cd core;   ant -q clean
 	dh_clean
 
@@ -35,10 +44,9 @@
 	dh_testdir
 	dh_testroot
-	dh_clean -k
 	dh_installdirs
 
 #	./debian/update_svn_revision.sh
-	./debian/make_install_files.sh --dest-path=${destdir} || exit -1
-
+	bash ./debian/make_install_files.sh --dest-path=${destdir} --no-clean || exit -1
+	# Install done
 
 # Build architecture-independent files here.
