zendframework/zf2-documentation — pull request #559 by shevron (2012-12-15 16:47:37+00:00)
Title: Avoid full rebuilds by copying files to tmp/ with preserved mtime

In the current Makefile in pre-build all files are copied to tmp/ thus their modification time is changed, causing a full rebuild even if most files did not change.

This small fix adds the -p flag to cp causing all file attributes including mtime to be preserved. I've tested it on OS X only.