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

1 by Thomas Schoepf
Import upstream version 374
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@
1.2.3 by Anibal Monsalve Salazar
Import upstream version 406
16
CPPFLAGS = @CPPFLAGS@
1.3.1 by Anibal Monsalve Salazar
Import upstream version 418
17
EXEEXT = @EXEEXT@
1 by Thomas Schoepf
Import upstream version 374
18
O=o
19
20
LIBS = @LIBS@
21
22
prefix = @prefix@
23
exec_prefix = @exec_prefix@
24
25
# Where the installed binary goes.
26
bindir = @bindir@
27
binprefix = 
28
29
sysconfdir = @sysconfdir@
1.2.3 by Anibal Monsalve Salazar
Import upstream version 406
30
datarootdir = @datarootdir@
1 by Thomas Schoepf
Import upstream version 374
31
32
mandir = @mandir@
33
manext = 1
34
manprefix = 
1.2.3 by Anibal Monsalve Salazar
Import upstream version 406
35
DESTDIR =
1 by Thomas Schoepf
Import upstream version 374
36
37
#### End of system configuration section. ####
38
39
SHELL = /bin/sh
40
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} $<
45
1.4.1 by Anibal Monsalve Salazar
Import upstream version 434~beta
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} \
1 by Thomas Schoepf
Import upstream version 374
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} \
1.4.1 by Anibal Monsalve Salazar
Import upstream version 434~beta
51
	output.${O} pattern.${O} position.${O} prompt.${O} search.${O} signal.${O} \
1 by Thomas Schoepf
Import upstream version 374
52
	tags.${O} ttyin.${O} version.${O}  @REGEX_O@
53
1.3.1 by Anibal Monsalve Salazar
Import upstream version 418
54
all: less$(EXEEXT) lesskey$(EXEEXT) lessecho$(EXEEXT)
1 by Thomas Schoepf
Import upstream version 374
55
1.3.1 by Anibal Monsalve Salazar
Import upstream version 418
56
less$(EXEEXT): ${OBJ}
1 by Thomas Schoepf
Import upstream version 374
57
	${CC} ${LDFLAGS} -o $@ ${OBJ} ${LIBS}
58
1.3.1 by Anibal Monsalve Salazar
Import upstream version 418
59
lesskey$(EXEEXT): lesskey.${O} version.${O}
1 by Thomas Schoepf
Import upstream version 374
60
	${CC} ${LDFLAGS} -o $@ lesskey.${O} version.${O}
61
1.3.1 by Anibal Monsalve Salazar
Import upstream version 418
62
lessecho$(EXEEXT): lessecho.${O} version.${O}
1 by Thomas Schoepf
Import upstream version 374
63
	${CC} ${LDFLAGS} -o $@ lessecho.${O} version.${O}
64
65
${OBJ}: ${srcdir}/less.h ${srcdir}/funcs.h defines.h 
66
1.2.2 by Thomas Schoepf
Import upstream version 394
67
install: all ${srcdir}/less.nro ${srcdir}/lesskey.nro ${srcdir}/lessecho.nro installdirs
1.3.1 by Anibal Monsalve Salazar
Import upstream version 418
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)
1.2.3 by Anibal Monsalve Salazar
Import upstream version 406
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}
1 by Thomas Schoepf
Import upstream version 374
74
75
install-strip:
76
	${MAKE} INSTALL_PROGRAM='${INSTALL_PROGRAM} -s' install
77
78
installdirs: mkinstalldirs
1.2.3 by Anibal Monsalve Salazar
Import upstream version 406
79
	${srcdir}/mkinstalldirs ${DESTDIR}${bindir} ${DESTDIR}${mandir}/man${manext}
1 by Thomas Schoepf
Import upstream version 374
80
81
uninstall:
1.3.1 by Anibal Monsalve Salazar
Import upstream version 418
82
	rm -f ${DESTDIR}${bindir}/${binprefix}less$(EXEEXT)
83
	rm -f ${DESTDIR}${bindir}/${binprefix}lesskey$(EXEEXT)
84
	rm -f ${DESTDIR}${bindir}/${binprefix}lessecho$(EXEEXT)
1.2.3 by Anibal Monsalve Salazar
Import upstream version 406
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}
1 by Thomas Schoepf
Import upstream version 374
88
89
info:
90
install-info:
91
dvi:
92
check:
93
installcheck:
94
95
TAGS:
96
	cd ${srcdir} && etags *.c *.h
97
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
108
1.1.1 by Thomas Schoepf
Import upstream version 381
109
${srcdir}/configure: ${srcdir}/configure.ac
1 by Thomas Schoepf
Import upstream version 374
110
	cd ${srcdir}; autoheader; autoconf
111
112
clean:
1.3.1 by Anibal Monsalve Salazar
Import upstream version 418
113
	rm -f *.${O} core less$(EXEEXT) lesskey$(EXEEXT) lessecho$(EXEEXT)
1 by Thomas Schoepf
Import upstream version 374
114
115
mostlyclean: clean
116
117
distclean: clean
118
	rm -f Makefile config.status config.log config.cache defines.h stamp-h
119
120
realclean: distclean
121
	rm -f TAGS
122