2000-05-22 09:53:22 +00:00
|
|
|
# Makefile for less.
|
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CFLAGS_COMPILE_ONLY = -c
|
|
|
|
LDFLAGS = @LDFLAGS@
|
2007-06-04 01:42:54 +00:00
|
|
|
CPPFLAGS = @CPPFLAGS@
|
2009-05-08 23:45:27 +00:00
|
|
|
EXEEXT = @EXEEXT@
|
2000-05-22 09:53:22 +00:00
|
|
|
O=o
|
|
|
|
|
|
|
|
LIBS = @LIBS@
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
# Where the installed binary goes.
|
|
|
|
bindir = @bindir@
|
|
|
|
binprefix =
|
|
|
|
|
2002-01-07 20:29:38 +00:00
|
|
|
sysconfdir = @sysconfdir@
|
2007-06-04 01:42:54 +00:00
|
|
|
datarootdir = @datarootdir@
|
2002-01-07 20:29:38 +00:00
|
|
|
|
2000-05-22 09:53:22 +00:00
|
|
|
mandir = @mandir@
|
|
|
|
manext = 1
|
|
|
|
manprefix =
|
2007-06-04 01:42:54 +00:00
|
|
|
DESTDIR =
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
# This rule allows us to supply the necessary -D options
|
|
|
|
# in addition to whatever the user asks for.
|
|
|
|
.c.o:
|
2002-01-07 20:29:38 +00:00
|
|
|
${CC} -I. ${CFLAGS_COMPILE_ONLY} -DBINDIR=\"${bindir}\" -DSYSDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} $<
|
2000-05-22 09:53:22 +00:00
|
|
|
|
2009-07-27 07:05:08 +00:00
|
|
|
OBJ = \
|
|
|
|
main.${O} screen.${O} brac.${O} ch.${O} charset.${O} cmdbuf.${O} \
|
|
|
|
command.${O} cvt.${O} decode.${O} edit.${O} filename.${O} forwback.${O} \
|
2000-05-22 09:53:22 +00:00
|
|
|
help.${O} ifile.${O} input.${O} jump.${O} line.${O} linenum.${O} \
|
|
|
|
lsystem.${O} mark.${O} optfunc.${O} option.${O} opttbl.${O} os.${O} \
|
2009-07-27 07:05:08 +00:00
|
|
|
output.${O} pattern.${O} position.${O} prompt.${O} search.${O} signal.${O} \
|
2000-05-22 09:53:22 +00:00
|
|
|
tags.${O} ttyin.${O} version.${O} @REGEX_O@
|
|
|
|
|
2009-05-08 23:45:27 +00:00
|
|
|
all: less$(EXEEXT) lesskey$(EXEEXT) lessecho$(EXEEXT)
|
2000-05-22 09:53:22 +00:00
|
|
|
|
2009-05-08 23:45:27 +00:00
|
|
|
less$(EXEEXT): ${OBJ}
|
2000-05-22 09:53:22 +00:00
|
|
|
${CC} ${LDFLAGS} -o $@ ${OBJ} ${LIBS}
|
|
|
|
|
2009-05-08 23:45:27 +00:00
|
|
|
lesskey$(EXEEXT): lesskey.${O} version.${O}
|
2000-05-22 09:53:22 +00:00
|
|
|
${CC} ${LDFLAGS} -o $@ lesskey.${O} version.${O}
|
|
|
|
|
2009-05-08 23:45:27 +00:00
|
|
|
lessecho$(EXEEXT): lessecho.${O} version.${O}
|
2000-05-22 09:53:22 +00:00
|
|
|
${CC} ${LDFLAGS} -o $@ lessecho.${O} version.${O}
|
|
|
|
|
|
|
|
${OBJ}: ${srcdir}/less.h ${srcdir}/funcs.h defines.h
|
|
|
|
|
2006-08-20 15:49:51 +00:00
|
|
|
install: all ${srcdir}/less.nro ${srcdir}/lesskey.nro ${srcdir}/lessecho.nro installdirs
|
2009-05-08 23:45:27 +00:00
|
|
|
${INSTALL_PROGRAM} less$(EXEEXT) ${DESTDIR}${bindir}/${binprefix}less$(EXEEXT)
|
|
|
|
${INSTALL_PROGRAM} lesskey$(EXEEXT) ${DESTDIR}${bindir}/${binprefix}lesskey$(EXEEXT)
|
|
|
|
${INSTALL_PROGRAM} lessecho$(EXEEXT) ${DESTDIR}${bindir}/${binprefix}lessecho$(EXEEXT)
|
2007-06-04 01:42:54 +00:00
|
|
|
${INSTALL_DATA} ${srcdir}/less.nro ${DESTDIR}${mandir}/man${manext}/${manprefix}less.${manext}
|
|
|
|
${INSTALL_DATA} ${srcdir}/lesskey.nro ${DESTDIR}${mandir}/man${manext}/${manprefix}lesskey.${manext}
|
|
|
|
${INSTALL_DATA} ${srcdir}/lessecho.nro ${DESTDIR}${mandir}/man${manext}/${manprefix}lessecho.${manext}
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
install-strip:
|
|
|
|
${MAKE} INSTALL_PROGRAM='${INSTALL_PROGRAM} -s' install
|
|
|
|
|
|
|
|
installdirs: mkinstalldirs
|
2007-06-04 01:42:54 +00:00
|
|
|
${srcdir}/mkinstalldirs ${DESTDIR}${bindir} ${DESTDIR}${mandir}/man${manext}
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
uninstall:
|
2009-05-08 23:45:27 +00:00
|
|
|
rm -f ${DESTDIR}${bindir}/${binprefix}less$(EXEEXT)
|
|
|
|
rm -f ${DESTDIR}${bindir}/${binprefix}lesskey$(EXEEXT)
|
|
|
|
rm -f ${DESTDIR}${bindir}/${binprefix}lessecho$(EXEEXT)
|
2007-06-04 01:42:54 +00:00
|
|
|
rm -f ${DESTDIR}${mandir}/man${manext}/${manprefix}less.${manext}
|
|
|
|
rm -f ${DESTDIR}${mandir}/man${manext}/${manprefix}lesskey.${manext}
|
|
|
|
rm -f ${DESTDIR}${mandir}/man${manext}/${manprefix}lessecho.${manext}
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
install-info:
|
|
|
|
dvi:
|
|
|
|
check:
|
|
|
|
installcheck:
|
|
|
|
|
|
|
|
TAGS:
|
|
|
|
cd ${srcdir} && etags *.c *.h
|
|
|
|
|
|
|
|
# config.status might not change defines.h
|
|
|
|
# Don't rerun config.status if we just configured (so there's no stamp-h).
|
|
|
|
defines.h: stamp-h
|
|
|
|
stamp-h: defines.h.in config.status
|
|
|
|
test ! -f stamp-h || CONFIG_FILES= CONFIG_HEADERS=defines.h ./config.status
|
|
|
|
touch stamp-h
|
|
|
|
Makefile: ${srcdir}/Makefile.in config.status
|
|
|
|
CONFIG_FILES=Makefile CONFIG_HEADERS= ./config.status
|
|
|
|
config.status: ${srcdir}/configure
|
|
|
|
./config.status --recheck
|
|
|
|
|
2004-04-17 07:16:34 +00:00
|
|
|
${srcdir}/configure: ${srcdir}/configure.ac
|
2000-05-22 09:53:22 +00:00
|
|
|
cd ${srcdir}; autoheader; autoconf
|
|
|
|
|
|
|
|
clean:
|
2009-05-08 23:45:27 +00:00
|
|
|
rm -f *.${O} core less$(EXEEXT) lesskey$(EXEEXT) lessecho$(EXEEXT)
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile config.status config.log config.cache defines.h stamp-h
|
|
|
|
|
|
|
|
realclean: distclean
|
|
|
|
rm -f TAGS
|
|
|
|
|