summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/patch/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/patch/Makefile')
-rw-r--r--gnu/usr.bin/patch/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/usr.bin/patch/Makefile b/gnu/usr.bin/patch/Makefile
index 373efbb..76d28e8 100644
--- a/gnu/usr.bin/patch/Makefile
+++ b/gnu/usr.bin/patch/Makefile
@@ -1,6 +1,17 @@
# $FreeBSD$
-PROG= patch
+.include <bsd.own.mk>
+
+.if ${MK_BSD_PATCH} == "yes"
+PROG= gnupatch
+CLEANFILES+= gnupatch.1
+
+gnupatch.1: patch.1
+ cp ${.ALLSRC} ${.TARGET}
+.else
+PROG= patch
+.endif
+
SRCS= backupfile.c inp.c patch.c pch.c util.c version.c
CFLAGS+=-DHAVE_CONFIG_H
OpenPOWER on IntegriCloud