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 12edb544c24c57963c296541e1be8645da9d838e..a9bd4ec5f8e32f86b16fc4cb563b147be548750a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -30,6 +30,7 @@ clean:
 	rm -f $(TARGETS) *.o *Dict*
 
 install:
+	mkdir -p ../bin/
 	cp $(TARGETS) ../bin/
 
 # dependencies added by makedep (and slightly alterated for ROOT dictionnaries)