3 #### Start of system configuration section. ####
10 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
11 INSTALL_DATA
= @INSTALL_DATA@
14 CFLAGS_COMPILE_ONLY
= -c
21 exec_prefix = @
exec_prefix@
23 # Where the installed binary goes.
27 sysconfdir
= @sysconfdir@
33 #### End of system configuration section. ####
37 # This rule allows us to supply the necessary -D options
38 # in addition to whatever the user asks for.
40 ${CC} -I.
${CFLAGS_COMPILE_ONLY} -DBINDIR
=\"${bindir}\" -DSYSDIR
=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} $<
42 OBJ
= main.
${O} screen.
${O} brac.
${O} ch.
${O} charset.
${O} cmdbuf.
${O} \
43 command.
${O} decode.
${O} edit.
${O} filename.
${O} forwback.
${O} \
44 help.
${O} ifile.
${O} input.
${O} jump.
${O} line.
${O} linenum.
${O} \
45 lsystem.
${O} mark.
${O} optfunc.
${O} option.
${O} opttbl.
${O} os.
${O} \
46 output.
${O} position.
${O} prompt.
${O} search.
${O} signal.
${O} \
47 tags.
${O} ttyin.
${O} version.
${O} @REGEX_O@
49 all: less lesskey lessecho
52 ${CC} ${LDFLAGS} -o
$@
${OBJ} ${LIBS}
54 lesskey
: lesskey.
${O} version.
${O}
55 ${CC} ${LDFLAGS} -o
$@ lesskey.
${O} version.
${O}
57 lessecho
: lessecho.
${O} version.
${O}
58 ${CC} ${LDFLAGS} -o
$@ lessecho.
${O} version.
${O}
60 ${OBJ}: ${srcdir}/less.h
${srcdir}/funcs.h defines.h
62 install: all ${srcdir}/less.nro
${srcdir}/lesskey.nro
installdirs
63 ${INSTALL_PROGRAM} less
${bindir}/${binprefix}less
64 ${INSTALL_PROGRAM} lesskey
${bindir}/${binprefix}lesskey
65 ${INSTALL_PROGRAM} lessecho
${bindir}/${binprefix}lessecho
66 ${INSTALL_DATA} ${srcdir}/less.nro
${mandir}/man
${manext}/${manprefix}less.
${manext}
67 ${INSTALL_DATA} ${srcdir}/lesskey.nro
${mandir}/man
${manext}/${manprefix}lesskey.
${manext}
70 ${MAKE} INSTALL_PROGRAM
='${INSTALL_PROGRAM} -s' install
72 installdirs: mkinstalldirs
73 ${srcdir}/mkinstalldirs
${bindir} ${mandir}/man
${manext}
76 rm -f
${bindir}/${binprefix}less
${bindir}/${binprefix}lesskey
${bindir}/${binprefix}lessecho
77 rm -f
${mandir}/man
${manext}/${manprefix}less.
${manext} ${mandir}/man
${manext}/${manprefix}lesskey.
${manext}
86 cd
${srcdir} && etags
*.c
*.h
88 # config.status might not change defines.h
89 # Don't rerun config.status if we just configured (so there's no stamp-h).
91 stamp-h
: defines.h.in config.status
92 test ! -f stamp-h || CONFIG_FILES
= CONFIG_HEADERS
=defines.h .
/config.status
94 Makefile
: ${srcdir}/Makefile.in config.status
95 CONFIG_FILES
=Makefile CONFIG_HEADERS
= .
/config.status
96 config.status
: ${srcdir}/configure
97 .
/config.status
--recheck
99 ${srcdir}/configure
: ${srcdir}/configure.ac
100 cd
${srcdir}; autoheader
; autoconf
103 rm -f
*.
${O} core less lesskey lessecho
108 rm -f Makefile config.status config.log config.cache defines.h stamp-h