diff --git a/Makefile b/Makefile
index dd9524cbe121ab71697ce8637889696db1766f6b..865bcf2d116142d18b4f4164bb370048d2627df2 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ run:
 	$(MAKE) -C $(SIM_DIR)
 
 clean:
-	rm -f bin/*
+	rm -rf bin
 	$(MAKE) -C $(CODE_DIR) clean
 
 simclean:
diff --git a/src/Makefile b/src/Makefile
index 3498105cc8b3036b5cdc434fa220ccd418743615..10334d42243577ed7a3b18c534048f1bc1586a9c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -33,6 +33,7 @@ clean:
 	rm -f $(TARGETS) *.o *Dict*
 
 install:
+	mkdir -p ../bin/
 	cp $(TARGETS) ../bin/
 
 # dependencies added by makedep (and slightly alterated for ROOT dictionnaries)