~ubuntu-branches/ubuntu/quantal/less/quantal

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Schoepf
  • Date: 2002-04-04 16:43:52 UTC
  • Revision ID: james.westby@ubuntu.com-20020404164352-qldq048yoc7x5sd5
Tags: upstream-374
ImportĀ upstreamĀ versionĀ 374

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for less.
 
2
 
 
3
#### Start of system configuration section. ####
 
4
 
 
5
srcdir = @srcdir@
 
6
VPATH = @srcdir@
 
7
 
 
8
CC = @CC@
 
9
INSTALL = @INSTALL@
 
10
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
11
INSTALL_DATA = @INSTALL_DATA@
 
12
 
 
13
CFLAGS = @CFLAGS@
 
14
CFLAGS_COMPILE_ONLY = -c
 
15
LDFLAGS = @LDFLAGS@
 
16
O=o
 
17
 
 
18
LIBS = @LIBS@
 
19
 
 
20
prefix = @prefix@
 
21
exec_prefix = @exec_prefix@
 
22
 
 
23
# Where the installed binary goes.
 
24
bindir = @bindir@
 
25
binprefix = 
 
26
 
 
27
sysconfdir = @sysconfdir@
 
28
 
 
29
mandir = @mandir@
 
30
manext = 1
 
31
manprefix = 
 
32
 
 
33
#### End of system configuration section. ####
 
34
 
 
35
SHELL = /bin/sh
 
36
 
 
37
# This rule allows us to supply the necessary -D options
 
38
# in addition to whatever the user asks for.
 
39
.c.o:
 
40
        ${CC} -I. ${CFLAGS_COMPILE_ONLY} -DBINDIR=\"${bindir}\" -DSYSDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} $<
 
41
 
 
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@
 
48
 
 
49
all: less lesskey lessecho
 
50
 
 
51
less: ${OBJ}
 
52
        ${CC} ${LDFLAGS} -o $@ ${OBJ} ${LIBS}
 
53
 
 
54
lesskey: lesskey.${O} version.${O}
 
55
        ${CC} ${LDFLAGS} -o $@ lesskey.${O} version.${O}
 
56
 
 
57
lessecho: lessecho.${O} version.${O}
 
58
        ${CC} ${LDFLAGS} -o $@ lessecho.${O} version.${O}
 
59
 
 
60
${OBJ}: ${srcdir}/less.h ${srcdir}/funcs.h defines.h 
 
61
 
 
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}
 
68
 
 
69
install-strip:
 
70
        ${MAKE} INSTALL_PROGRAM='${INSTALL_PROGRAM} -s' install
 
71
 
 
72
installdirs: mkinstalldirs
 
73
        ${srcdir}/mkinstalldirs ${bindir} ${mandir}/man${manext}
 
74
 
 
75
uninstall:
 
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}
 
78
 
 
79
info:
 
80
install-info:
 
81
dvi:
 
82
check:
 
83
installcheck:
 
84
 
 
85
TAGS:
 
86
        cd ${srcdir} && etags *.c *.h
 
87
 
 
88
# config.status might not change defines.h
 
89
# Don't rerun config.status if we just configured (so there's no stamp-h).
 
90
defines.h: stamp-h
 
91
stamp-h: defines.h.in config.status
 
92
        test ! -f stamp-h || CONFIG_FILES= CONFIG_HEADERS=defines.h ./config.status
 
93
        touch stamp-h
 
94
Makefile: ${srcdir}/Makefile.in config.status
 
95
        CONFIG_FILES=Makefile CONFIG_HEADERS= ./config.status
 
96
config.status: ${srcdir}/configure
 
97
        ./config.status --recheck
 
98
 
 
99
${srcdir}/configure: ${srcdir}/configure.in
 
100
        cd ${srcdir}; autoheader; autoconf
 
101
 
 
102
clean:
 
103
        rm -f *.${O} core less lesskey lessecho
 
104
 
 
105
mostlyclean: clean
 
106
 
 
107
distclean: clean
 
108
        rm -f Makefile config.status config.log config.cache defines.h stamp-h
 
109
 
 
110
realclean: distclean
 
111
        rm -f TAGS
 
112