diff options
author | Mark Murray <markm@FreeBSD.org> | 1996-05-13 16:17:58 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 1996-05-13 16:17:58 +0000 |
commit | b867e24453b319bf5a075affdd5f2f94b7c71149 (patch) | |
tree | 10bb9f8bd0f222bd741d081e9687f6412a441561 /misc/less | |
parent | Setting the PAPERSIZE variable will allows to build packages with different (diff) |
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
Notes
Notes:
svn path=/head/; revision=3080
Diffstat (limited to 'misc/less')
-rw-r--r-- | misc/less/Makefile | 17 |
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> |