From b867e24453b319bf5a075affdd5f2f94b7c71149 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Mon, 13 May 1996 16:17:58 +0000 Subject: 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 --- misc/less/Makefile | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'misc/less') 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 -- cgit v1.2.3