diff options
author | markm <markm@FreeBSD.org> | 1996-05-13 16:17:58 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1996-05-13 16:17:58 +0000 |
commit | f663f8982c3be81f0f19a7bea2f0e3ee5404e573 (patch) | |
tree | 15bcaa7ffccfae96d0d6c5b4fe39de1bb39d9d71 /sysutils/less | |
parent | e922291d0a2612a88889b7be815091a99cf83a29 (diff) | |
download | FreeBSD-ports-f663f8982c3be81f0f19a7bea2f0e3ee5404e573.zip FreeBSD-ports-f663f8982c3be81f0f19a7bea2f0e3ee5404e573.tar.gz |
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 'sysutils/less')
-rw-r--r-- | sysutils/less/Makefile | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/sysutils/less/Makefile b/sysutils/less/Makefile index 112c9a9..c962bc7 100644 --- a/sysutils/less/Makefile +++ b/sysutils/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> |