aboutsummaryrefslogtreecommitdiffstats
path: root/misc/less
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1996-05-14 00:17:58 +0800
committermarkm <markm@FreeBSD.org>1996-05-14 00:17:58 +0800
commitf663f8982c3be81f0f19a7bea2f0e3ee5404e573 (patch)
tree15bcaa7ffccfae96d0d6c5b4fe39de1bb39d9d71 /misc/less
parente922291d0a2612a88889b7be815091a99cf83a29 (diff)
downloadfreebsd-ports-gnome-f663f8982c3be81f0f19a7bea2f0e3ee5404e573.tar.gz
freebsd-ports-gnome-f663f8982c3be81f0f19a7bea2f0e3ee5404e573.tar.zst
freebsd-ports-gnome-f663f8982c3be81f0f19a7bea2f0e3ee5404e573.zip
Replace the color: target with a macro. If you want to build less
with colour, you need to define COLOUR_LESS (or if you are from a place that is speling impaired, COLOR_LESS will do ;-)) OKed by: asami and others
Diffstat (limited to 'misc/less')
-rw-r--r--misc/less/Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/misc/less/Makefile b/misc/less/Makefile
index 112c9a90da00..c962bc72112e 100644
--- a/misc/less/Makefile
+++ b/misc/less/Makefile
@@ -3,7 +3,7 @@
# Date created: 8 Nov 1994
# Whom: ache
#
-# $Id: Makefile,v 1.8 1995/04/12 04:56:12 asami Exp $
+# $Id: Makefile,v 1.9 1995/11/26 10:47:49 asami Exp $
#
DISTNAME= less-290
@@ -16,20 +16,13 @@ GNU_CONFIGURE= yes
EXTRA_PATCH= patch-ab
-color:
- @echo "Okay, making a color version of less...."
- @cp ${FILESDIR}/${EXTRA_PATCH} ${PATCHDIR}
- @${MAKE} ${.MAKEFLAGS} all
-
pre-clean:
@rm -f ${PATCHDIR}/${EXTRA_PATCH}
+.if defined(COLOUR_LESS) || defined(COLOR_LESS)
pre-patch:
- @if [ ! -f ${PATCHDIR}/${EXTRA_PATCH} ]; then \
- echo '******************************************************' ; \
- echo '* Note that you can build a color version of less by *' ; \
- echo '* typing "make color" following a "make clean" *' ; \
- echo '******************************************************' ; \
- fi
+ @echo "Making a colour version of less."
+ @cp ${FILESDIR}/${EXTRA_PATCH} ${PATCHDIR}
+.endif
.include <bsd.port.mk>