Add water, sugar if using, margarine and salt in the food food processor and process till crumbly, just a few seconds. With the food processor running, add a little ice water, 1 tablespoon at a time, till the pastry holds together.
Wrap in cling film and let firm up, it's easier to roll out.