9597011682
Prefer SRCTOP over CURDIR/../../contrib, etc. However, retain the "up one level" instances of ../ because they are really relative to this part of the tree and not a means to find the root of the tree. As such, it's better to leave them since that further the goal of being able to move directories if watned to in the future. Differential Revision: https://reviews.freebsd.org/D9932 Sponsored by: Netflix Silence On: arch@ (twice)
28 lines
643 B
Makefile
28 lines
643 B
Makefile
# $FreeBSD$
|
|
|
|
DIFFSRC=${SRCTOP}/contrib/diff/src
|
|
.PATH: ${DIFFSRC} \
|
|
${SRCTOP}/contrib/diff/lib \
|
|
${SRCTOP}/contrib/diff/man
|
|
|
|
PROG= diff3
|
|
SRCS= diff3.c version-etc.c \
|
|
xmalloc.c error.c c-stack.c exitfail.c cmpbuf.c
|
|
|
|
# Important for ctype macros!
|
|
CFLAGS+=-funsigned-char
|
|
|
|
CFLAGS+=-I${SRCTOP}/contrib/diff/
|
|
CFLAGS+=-I${SRCTOP}/contrib/diff/src
|
|
CFLAGS+=-I${SRCTOP}/contrib/diff/lib
|
|
CFLAGS+=-DHAVE_CONFIG_H
|
|
CFLAGS+=-DDEFAULT_DIFF_PROGRAM=\"/usr/bin/diff\"
|
|
|
|
.for f in diff3.c
|
|
${f}: ${DIFFSRC}/${f} ${.CURDIR}/${f}.diff
|
|
patch -s -o ${.TARGET} < ${.CURDIR}/${f}.diff ${DIFFSRC}/${f}
|
|
CLEANFILES+= ${f}
|
|
.endfor
|
|
|
|
.include <bsd.prog.mk>
|