freebsd-skq/usr.sbin/mtree/Makefile
will afad9375d8 Add a ${CP} alias for copying files in the build.
Some users build FreeBSD as non-root in Perforce workspaces.  By default,
Perforce sets files read-only unless they're explicitly being edited.
As a result, the -f argument must be used to cp in order to override the
read-only flag when copying source files to object directories.  Bare use of
'cp' should be avoided in the future.

Update all current users of 'cp' in the src tree.

Reviewed by:	emaste
MFC after:	1 week
Sponsored by:	Spectra Logic
2015-01-16 21:39:08 +00:00

22 lines
383 B
Makefile

# From: @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
.include <bsd.own.mk>
.PATH: ${.CURDIR}/../../usr.bin/cksum
PROG= fmtree
MAN= fmtree.8
SRCS= compare.c crc.c create.c excludes.c misc.c mtree.c spec.c verify.c
SRCS+= specspec.c
CFLAGS+= -DMD5 -DSHA1 -DRMD160 -DSHA256
LIBADD= md
CLEANFILES+= fmtree.8
fmtree.8: mtree.8
${CP} ${.ALLSRC} ${.TARGET}
.include <bsd.prog.mk>