Durable water-repellent machining