summaryrefslogtreecommitdiff
path: root/usr.bin/less/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/less/Makefile.in')
-rw-r--r--usr.bin/less/Makefile.in15
1 files changed, 12 insertions, 3 deletions
diff --git a/usr.bin/less/Makefile.in b/usr.bin/less/Makefile.in
index 9c15e7858dc..f43a303d975 100644
--- a/usr.bin/less/Makefile.in
+++ b/usr.bin/less/Makefile.in
@@ -10,6 +10,13 @@ INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
+#
+# XXX - OpenBSD modificatations
+#
+INSTALL_MAN=install_man
+MANPAGES=less.nro lesskey.nro
+INSTALLDIRS=installdirs
+
CFLAGS = @CFLAGS@
CFLAGS_COMPILE_ONLY = -c
LDFLAGS = @LDFLAGS@
@@ -74,16 +81,18 @@ ${OBJ}: less.h defines.h funcs.h
filename.${O}: filename.c
${CC} -c -DHELPFILE=\"${datadir}/less.hlp\" -I. ${CPPFLAGS} ${CFLAGS} ${srcdir}/filename.c
-install: all less.hlp less.nro installdirs
+install: all less.hlp $(INSTALL_MAN) $(INSTALLDIRS)
${INSTALL_PROGRAM} less ${bindir}/${binprefix}less
${INSTALL_PROGRAM} lesskey ${bindir}/${binprefix}lesskey
${INSTALL_DATA} ${srcdir}/less.hlp ${datadir}/less.hlp
- ${INSTALL_DATA} ${srcdir}/less.nro ${mandir}/${manprefix}less.${manext}
- ${INSTALL_DATA} ${srcdir}/lesskey.nro ${mandir}/${manprefix}lesskey.${manext}
installdirs: mkinstalldirs
${srcdir}/mkinstalldirs ${bindir} ${datadir} ${mandir}
+install_man: ${MANPAGES}
+ ${INSTALL_DATA} ${srcdir}/less.nro ${mandir}/${manprefix}less.${manext}
+ ${INSTALL_DATA} ${srcdir}/lesskey.nro ${mandir}/${manprefix}lesskey.${manext}
+
uninstall:
rm -f ${bindir}/${binprefix}less ${bindir}/${binprefix}lesskey
rm -f ${datadir}/less.hlp