File: [cvs.NetBSD.org] / src / share / man / man7 / Makefile (download)
Revision 1.30, Wed Jul 31 11:57:24 2013 UTC (10 years, 8 months ago) by gdt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base Branch point for: netbsd-7
Changes since 1.29: +3 -3
lines
Remove tests.7 in objdir before copying to it.
If one's source tree has non-writable files (because of CVSREAD=t, or
someone else owns it, or it's on some read-only filesystems, some
other reason), recently-added makefile code would cp tests.foo.7 in
the sources to tests.7 in objdir, preserving permissions, but not
forcing the copy. A subsequent copy would result in an error, failing
the build. Therefore, rm -f the target file before doing the copy.
(Arguably there should some standard support for this, but copying
files from the source directory to objdir is quite unusual.)
|