summaryrefslogtreecommitdiffstats
path: root/usr.bin/less
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2000-06-03 11:39:38 +0000
committerbde <bde@FreeBSD.org>2000-06-03 11:39:38 +0000
commit6f14949a1b1e7e00c0128aff1c07997c95a449cc (patch)
treed7ddde3fedb2972fc39494d6c95d7faa6cb798ee /usr.bin/less
parented0e424f9ce8986c95a337db8d5ec8c35311bd54 (diff)
downloadFreeBSD-src-6f14949a1b1e7e00c0128aff1c07997c95a449cc.zip
FreeBSD-src-6f14949a1b1e7e00c0128aff1c07997c95a449cc.tar.gz
Fixed some style bugs. Apart from formatting bugs, MANDEPEND is deprecated
and $< and $@ are even documented as deprecated.
Diffstat (limited to 'usr.bin/less')
-rw-r--r--usr.bin/less/Makefile11
-rw-r--r--usr.bin/less/Makefile.common10
2 files changed, 5 insertions, 16 deletions
diff --git a/usr.bin/less/Makefile b/usr.bin/less/Makefile
index ceb9964..e0e25c2 100644
--- a/usr.bin/less/Makefile
+++ b/usr.bin/less/Makefile
@@ -1,5 +1,3 @@
-# Makefile for less
-#
# $FreeBSD$
PROG= less
@@ -9,14 +7,9 @@ SRCS= main.c screen.c brac.c ch.c charset.c cmdbuf.c command.c decode.c \
position.c prompt.c search.c signal.c tags.c ttyin.c version.c
DPADD= ${LIBNCURSES}
LDADD= -lncurses
-
LINKS= ${BINDIR}/less /usr/bin/more
-
-MAN1= less.1
-MANDEPEND= less.1
-CLEANFILES+= ${MANDEPEND}
-
-MLINKS= less.1 more.1
+MLINKS= less.1 more.1
+CLEANFILES= ${MAN1}
.include "Makefile.common"
.include <bsd.prog.mk>
diff --git a/usr.bin/less/Makefile.common b/usr.bin/less/Makefile.common
index becb0e6..6b3b62b 100644
--- a/usr.bin/less/Makefile.common
+++ b/usr.bin/less/Makefile.common
@@ -1,15 +1,11 @@
-# Makefile.common for less
-#
# $FreeBSD$
LSDIR= ${.CURDIR}/../../contrib/less
.PATH: ${LSDIR}
-CFLAGS+=-I. -I${.CURDIR}/../less -I${LSDIR}
+CFLAGS+=-I${.CURDIR}/../less -I${LSDIR}
-.SUFFIXES: .nro .1
+.SUFFIXES: .nro .1
.nro.1:
- @${ECHO} Making $@ from $<
- @-rm -f $@
- @cp $< $@
+ ln -s ${.IMPSRC} ${.TARGET}
OpenPOWER on IntegriCloud