aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/less
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2000-06-03 11:39:38 +0000
committerBruce Evans <bde@FreeBSD.org>2000-06-03 11:39:38 +0000
commit81ae6b634188151371634647a3013b8571497844 (patch)
treed56a5b37eb45d6280c62cd15374f851c1af41916 /usr.bin/less
parent61b9b2965cf26de412d68b234540ccb7dddea8f7 (diff)
downloadsrc-81ae6b634188151371634647a3013b8571497844.tar.gz
src-81ae6b634188151371634647a3013b8571497844.zip
Fixed some style bugs. Apart from formatting bugs, MANDEPEND is deprecated
and $< and $@ are even documented as deprecated.
Notes
Notes: svn path=/head/; revision=61216
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 ceb99641c0ab..e0e25c24d81b 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 becb0e68ebe7..6b3b62b97dab 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}