etc/services - sync with NetBSD-8
[minix.git] / external / bsd / less / dist / Makefile.in
blob8c8aed81edc0bfc4c8ef906386cddff61222da91
1 # Makefile for less.
3 #### Start of system configuration section. ####
5 srcdir = @srcdir@
6 VPATH = @srcdir@
8 CC = @CC@
9 INSTALL = @INSTALL@
10 INSTALL_PROGRAM = @INSTALL_PROGRAM@
11 INSTALL_DATA = @INSTALL_DATA@
13 CFLAGS = @CFLAGS@
14 CFLAGS_COMPILE_ONLY = -c
15 LDFLAGS = @LDFLAGS@
16 CPPFLAGS = @CPPFLAGS@
17 EXEEXT = @EXEEXT@
18 O=o
20 LIBS = @LIBS@
22 prefix = @prefix@
23 exec_prefix = @exec_prefix@
25 # Where the installed binary goes.
26 bindir = @bindir@
27 binprefix =
29 sysconfdir = @sysconfdir@
30 datarootdir = @datarootdir@
32 mandir = @mandir@
33 manext = 1
34 manprefix =
35 DESTDIR =
37 #### End of system configuration section. ####
39 SHELL = /bin/sh
41 # This rule allows us to supply the necessary -D options
42 # in addition to whatever the user asks for.
43 .c.o:
44 ${CC} -I. ${CFLAGS_COMPILE_ONLY} -DBINDIR=\"${bindir}\" -DSYSDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} $<
46 OBJ = \
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)
56 less$(EXEEXT): ${OBJ}
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}
75 install-strip:
76 ${MAKE} INSTALL_PROGRAM='${INSTALL_PROGRAM} -s' install
78 installdirs: mkinstalldirs
79 ${srcdir}/mkinstalldirs ${DESTDIR}${bindir} ${DESTDIR}${mandir}/man${manext}
81 uninstall:
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}
89 info:
90 install-info:
91 dvi:
92 check:
93 installcheck:
95 TAGS:
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).
100 defines.h: stamp-h
101 stamp-h: defines.h.in config.status
102 test ! -f stamp-h || CONFIG_FILES= CONFIG_HEADERS=defines.h ./config.status
103 touch stamp-h
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
112 clean:
113 rm -f *.${O} core less$(EXEEXT) lesskey$(EXEEXT) lessecho$(EXEEXT)
115 mostlyclean: clean
117 distclean: clean
118 rm -f Makefile config.status config.log config.cache defines.h stamp-h
120 realclean: distclean
121 rm -f TAGS