diff --git a/com.oracle.truffle.r.test.native/urand/src/Makefile b/com.oracle.truffle.r.test.native/urand/src/Makefile
index cf4d81e20d95b39354845957325af4aee174b1a9..35f613ac7a9c2a7083db07f0a5f31751afda41e5 100644
--- a/com.oracle.truffle.r.test.native/urand/src/Makefile
+++ b/com.oracle.truffle.r.test.native/urand/src/Makefile
@@ -51,4 +51,4 @@ $(BIN)/%.o: %.c
 	gcc -I$(INCLUDE_DIR) -fPIC -O2 -c $< -o $@
 
 clean:
-	rm $(BIN)/*
+	rm -rf $(BIN)