summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/sort/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/usr.bin/sort/Makefile b/gnu/usr.bin/sort/Makefile
index e3a005d..a116a63 100644
--- a/gnu/usr.bin/sort/Makefile
+++ b/gnu/usr.bin/sort/Makefile
@@ -3,7 +3,18 @@
SORTDIR= ${.CURDIR}/../../../contrib/gnu-sort
.PATH: ${SORTDIR}/lib ${SORTDIR}/src ${SORTDIR}/man
+.include <bsd.own.mk>
+
+.if ${MK_BSD_SORT} != "yes"
PROG= sort
+.else
+PROG= gnusort
+
+CLEANFILES+= gnusort.1
+gnusort.1: sort.1
+ cp ${.ALLSRC} ${.TARGET}
+.endif
+
SRCS= sort.c \
__fpending.c \
argmatch.c \
OpenPOWER on IntegriCloud