[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / man / man7

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.)

#	$NetBSD: Makefile,v 1.30 2013/07/31 11:57:24 gdt Exp $
#	@(#)Makefile	8.1 (Berkeley) 6/5/93

.include <bsd.init.mk>

# missing: eqnchar.7 man.7 ms.7 term.7

MAN=	ascii.7 c.7 environ.7 glob.7 hier.7 hostname.7 intro.7 mailaddr.7 \
	module.7 nls.7 operator.7 orders.7 pkgsrc.7 release.7  rfc6056.7 \
	security.7 script.7 setuid.7 signal.7 sticky.7 symlink.7 sysctl.7 \
	tests.7

CLEANFILES=	tests.7
.if ${MKKYUA} != "no"
tests.7: tests.kyua.7
	rm -f ${.TARGET} && cp ${.ALLSRC} ${.TARGET}
.else
tests.7: tests.atf.7
	rm -f ${.TARGET} && cp ${.ALLSRC} ${.TARGET}
.endif

MLINKS+=c.7 c78.7 \
	c.7 c89.7 \
	c.7 c90.7 \
	c.7 c99.7

.include <bsd.man.mk>