3 #### Start of system configuration section. ####
10 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
11 INSTALL_DATA
= @INSTALL_DATA@
14 CFLAGS_COMPILE_ONLY
= -c
23 exec_prefix = @
exec_prefix@
25 # Where the installed binary goes.
29 sysconfdir
= @sysconfdir@
30 datarootdir
= @datarootdir@
37 #### End of system configuration section. ####
41 # This rule allows us to supply the necessary -D options
42 # in addition to whatever the user asks for.
44 ${CC} -I.
${CFLAGS_COMPILE_ONLY} -DBINDIR
=\"${bindir}\" -DSYSDIR
=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} $<
47 main.
${O} screen.
${O} brac.
${O} ch.
${O} charset.
${O} cmdbuf.
${O} \
48 command.
${O} cvt.
${O} decode.
${O} edit.
${O} filename.
${O} forwback.
${O} \
49 help.
${O} ifile.
${O} input.
${O} jump.
${O} line.
${O} linenum.
${O} \
50 lsystem.
${O} mark.
${O} optfunc.
${O} option.
${O} opttbl.
${O} os.
${O} \
51 output.
${O} pattern.
${O} position.
${O} prompt.
${O} search.
${O} signal.
${O} \
52 tags.
${O} ttyin.
${O} version.
${O} @REGEX_O@
54 all: less
$(EXEEXT
) lesskey
$(EXEEXT
) lessecho
$(EXEEXT
)
57 ${CC} ${LDFLAGS} -o
$@
${OBJ} ${LIBS}
59 lesskey
$(EXEEXT
): lesskey.
${O} version.
${O}
60 ${CC} ${LDFLAGS} -o
$@ lesskey.
${O} version.
${O}
62 lessecho
$(EXEEXT
): lessecho.
${O} version.
${O}
63 ${CC} ${LDFLAGS} -o
$@ lessecho.
${O} version.
${O}
65 ${OBJ}: ${srcdir}/less.h
${srcdir}/funcs.h defines.h
67 install: all ${srcdir}/less.nro
${srcdir}/lesskey.nro
${srcdir}/lessecho.nro
installdirs
68 ${INSTALL_PROGRAM} less
$(EXEEXT
) ${DESTDIR}${bindir}/${binprefix}less
$(EXEEXT
)
69 ${INSTALL_PROGRAM} lesskey
$(EXEEXT
) ${DESTDIR}${bindir}/${binprefix}lesskey
$(EXEEXT
)
70 ${INSTALL_PROGRAM} lessecho
$(EXEEXT
) ${DESTDIR}${bindir}/${binprefix}lessecho
$(EXEEXT
)
71 ${INSTALL_DATA} ${srcdir}/less.nro
${DESTDIR}${mandir}/man
${manext}/${manprefix}less.
${manext}
72 ${INSTALL_DATA} ${srcdir}/lesskey.nro
${DESTDIR}${mandir}/man
${manext}/${manprefix}lesskey.
${manext}
73 ${INSTALL_DATA} ${srcdir}/lessecho.nro
${DESTDIR}${mandir}/man
${manext}/${manprefix}lessecho.
${manext}
76 ${MAKE} INSTALL_PROGRAM
='${INSTALL_PROGRAM} -s' install
78 installdirs: mkinstalldirs
79 ${srcdir}/mkinstalldirs
${DESTDIR}${bindir} ${DESTDIR}${mandir}/man
${manext}
82 rm -f
${DESTDIR}${bindir}/${binprefix}less
$(EXEEXT
)
83 rm -f
${DESTDIR}${bindir}/${binprefix}lesskey
$(EXEEXT
)
84 rm -f
${DESTDIR}${bindir}/${binprefix}lessecho
$(EXEEXT
)
85 rm -f
${DESTDIR}${mandir}/man
${manext}/${manprefix}less.
${manext}
86 rm -f
${DESTDIR}${mandir}/man
${manext}/${manprefix}lesskey.
${manext}
87 rm -f
${DESTDIR}${mandir}/man
${manext}/${manprefix}lessecho.
${manext}
96 cd
${srcdir} && etags
*.c
*.h
98 # config.status might not change defines.h
99 # Don't rerun config.status if we just configured (so there's no stamp-h).
101 stamp-h
: defines.h.in config.status
102 test ! -f stamp-h || CONFIG_FILES
= CONFIG_HEADERS
=defines.h .
/config.status
104 Makefile
: ${srcdir}/Makefile.in config.status
105 CONFIG_FILES
=Makefile CONFIG_HEADERS
= .
/config.status
106 config.status
: ${srcdir}/configure
107 .
/config.status
--recheck
109 ${srcdir}/configure
: ${srcdir}/configure.ac
110 cd
${srcdir}; autoheader
; autoconf
113 rm -f
*.
${O} core less
$(EXEEXT
) lesskey
$(EXEEXT
) lessecho
$(EXEEXT
)
118 rm -f Makefile config.status config.log config.cache defines.h stamp-h