Indeed adding a dependency on automake fixes it.