aa74e2f883
is to be provided by --suffix). Looking at the usage here in diffutils, it seems that we can just get rid of the -b .orig stuff. This resolves a problem that can triggered if we move toward to a more permissively licensed patch(1) program.
29 lines
720 B
Makefile
29 lines
720 B
Makefile
# $FreeBSD$
|
|
|
|
DIFFSRC=${.CURDIR}/../../../contrib/diff/src
|
|
.PATH: ${DIFFSRC} \
|
|
${.CURDIR}/../../../contrib/diff/lib \
|
|
${.CURDIR}/../../../contrib/diff/man
|
|
|
|
PROG= sdiff
|
|
SRCS= sdiff.c version-etc.c \
|
|
error.c xmalloc.c c-stack.c basename.c strtoumax.c \
|
|
exitfail.c
|
|
|
|
# Important for ctype macros!
|
|
CFLAGS+=-funsigned-char
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff/src
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff/lib
|
|
CFLAGS+=-DHAVE_CONFIG_H
|
|
CFLAGS+=-DDEFAULT_DIFF_PROGRAM=\"/usr/bin/diff\"
|
|
|
|
.for f in sdiff.c
|
|
${f}: ${DIFFSRC}/${f} ${.CURDIR}/${f}.diff
|
|
patch -s -o ${.TARGET} < ${.CURDIR}/${f}.diff ${DIFFSRC}/${f}
|
|
CLEANFILES+= ${f}
|
|
.endfor
|
|
|
|
.include <bsd.prog.mk>
|