*** empty log message ***
[findutils.git] / locate / Makefile.in
blob5e1d6d4b362dbb78bce796f30c377f7c37c2847d
1 # Makefile.in generated automatically by automake from Makefile.am.
2 # Copyright (C) 1994 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 SHELL = /bin/sh
20 srcdir = @srcdir@
21 top_srcdir = @top_srcdir@
22 VPATH = @srcdir@
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
26 bindir = $(exec_prefix)/bin
27 sbindir = $(exec_prefix)/sbin
28 libexecdir = $(exec_prefix)/libexec
29 datadir = $(prefix)/share
30 sysconfdir = $(prefix)/etc
31 sharedstatedir = $(prefix)/com
32 localstatedir = $(prefix)/var
33 libdir = $(exec_prefix)/lib
34 infodir = $(prefix)/info
35 mandir = $(prefix)/man
36 includedir = $(prefix)/include
37 oldincludedir = /usr/include
39 INSTALL = @INSTALL@
40 INSTALL_PROGRAM = @INSTALL_PROGRAM@
41 INSTALL_DATA = @INSTALL_DATA@
42 transform = @program_transform_name@
44 ALL = ${PROGRAMS} ${LIBPROGRAMS} ${SCRIPTS} ${LIBSCRIPTS} ${LIBFILES}
45 CC = @CC@
46 LEX = @LEX@
47 YACC = @YACC@
48 ANSI2KNR = ./ansi2knr
50 DEFS = @DEFS@
51 CPPFLAGS = @CPPFLAGS@
52 CFLAGS = @CFLAGS@
53 LDFLAGS = @LDFLAGS@
54 LIBS = @LIBS@
56 locate_SOURCES = locate.c
57 locate_OBJECTS = locate.o
58 frcode_SOURCES = frcode.c
59 frcode_OBJECTS = frcode.o
60 code_SOURCES = code.c
61 code_OBJECTS = code.o
62 bigram_SOURCES = bigram.c
63 bigram_OBJECTS = bigram.o
64 NROFF = nroff
66 SOURCES = locate.c frcode.c code.c bigram.c
67 DIST_CONF = Makefile.am Makefile.in
68 DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER)
70 # The default database to build and search.
71 LOCATE_DB = $(localstatedir)/locatedb
73 PROGRAMS = locate
74 LIBPROGRAMS = frcode code bigram
75 SCRIPTS = updatedb
76 MANS = locate.1 updatedb.1 locatedb.5
77 CONFIG_HEADER = ../config.h
79 DIST_OTHER = locatedb.h updatedb.sh
80 CLEANFILES = updatedb
82 INCLUDES = -I.. -I$(top_srcdir)/lib -DLOCATE_DB=\"$(LOCATE_DB)\"
84 LDADD = ../find/version.o ../lib/libfind.a
86 all:: ${ALL}
88 .c.o:
89 $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $<
91 $(locate_OBJECTS): ../config.h
92 $(frcode_OBJECTS): ../config.h
93 $(code_OBJECTS): ../config.h
94 $(bigram_OBJECTS): ../config.h
95 install:: install-programs
97 install-programs: $(PROGRAMS) $(SCRIPTS)
98 $(top_srcdir)/mkinstalldirs $(bindir)
99 for p in $(PROGRAMS) $(SCRIPTS); do \
100 $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
101 done
103 uninstall:: uninstall-programs
105 uninstall-programs:
106 for p in $(PROGRAMS) $(SCRIPTS); do \
107 rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
108 done
110 install:: install-libprograms
112 install-libprograms: $(LIBPROGRAMS) $(LIBSCRIPTS)
113 $(top_srcdir)/mkinstalldirs $(libexecdir)
114 for p in $(LIBPROGRAMS) $(LIBSCRIPTS); do \
115 $(INSTALL_PROGRAM) $$p $(libexecdir)/`echo $$p|sed '$(transform)'`; \
116 done
118 uninstall:: uninstall-libprograms
120 uninstall-libprograms:
121 for p in $(LIBPROGRAMS) $(LIBSCRIPTS); do \
122 rm -f $(libexecdir)/`echo $$p|sed '$(transform)'`; \
123 done
125 locate: $(locate_OBJECTS)
126 $(CC) -o $@ $(locate_OBJECTS) $(LDADD) $(LDFLAGS) $(LIBS)
128 frcode: $(frcode_OBJECTS)
129 $(CC) -o $@ $(frcode_OBJECTS) $(LDADD) $(LDFLAGS) $(LIBS)
131 code: $(code_OBJECTS)
132 $(CC) -o $@ $(code_OBJECTS) $(LDADD) $(LDFLAGS) $(LIBS)
134 bigram: $(bigram_OBJECTS)
135 $(CC) -o $@ $(bigram_OBJECTS) $(LDADD) $(LDFLAGS) $(LIBS)
137 install:: install-man
139 install-man:
140 for man in $(MANS); do \
141 sect=`echo $$man|sed 's%.*\.\([0-9][a-z]*\)$$%\1%'`; \
142 inst=`basename $$man $$sect|sed '$(transform)'`$$sect; \
143 mdir=$(mandir)/man$$sect; \
144 $(top_srcdir)/mkinstalldirs $$mdir; \
145 echo installing $$man as $$mdir/$$inst; \
146 $(INSTALL_DATA) $(srcdir)/$$man $$mdir/$$inst; \
147 cdir=$(mandir)/cat$$sect; \
148 if test -d $$cdir; then \
149 echo formatting $$man as $$cdir/$$inst; \
150 $(NROFF) -man $(srcdir)/$$man > $$cdir/$$inst; \
151 fi; \
152 done
154 uninstall:: uninstall-man
156 uninstall-man:
157 for man in $(MANS); do \
158 sect=`echo $$man|sed 's%.*\(\.[0-9][a-z]*\)$$%\1%'; \
159 inst=`basename $$man $sect|sed '$(transform)'`.$$sect; \
160 mdir=$(mandir)/man$$sect; \
161 cdir=$(mandir)/cat$$sect; \
162 rm -f $$mdir/$$inst $$cdir/$$inst; \
163 done
165 mostlyclean:
166 rm -f *.o core
168 clean: mostlyclean
169 rm -f $(PROGRAMS) $(LIBPROGRAMS) $(LIBFILES) $(TEXFILES) $(CLEANFILES)
171 distclean: clean
172 rm -f Makefile *.tab.c $(DISTCLEANFILES)
173 rm -f config.cache config.log config.status ${CONFIG_HEADER} stamp-h
175 realclean: distclean
176 rm -f TAGS $(INFOS)
178 dist: $(DIST_FILES) $(DIST_DIRS)
179 -mkdir ../`cat ../distname`/$(subdir)
180 @for file in $(DIST_FILES); do \
181 echo linking $$file; \
182 ln $(srcdir)/$$file ../`cat ../distname`/$(subdir)/$$file || \
183 { echo copying $$file instead; cp -p $(srcdir)/$$file ../`cat ../distname`/$(subdir)/$$file;}; \
184 done
186 check dvi info install uninstall::
188 tags:: TAGS
190 TAGS::
191 cd $(srcdir); etags $(SOURCES)
193 # Tell versions [3.59,3.63) of GNU make to not export all variables.
194 # Otherwise a system limit (for SysV at least) may be exceeded.
195 .NOEXPORT:
197 $(PROGRAMS) $(LIBPROGRAMS): ../find/version.o ../lib/libfind.a
199 updatedb: updatedb.sh
200 rm -f $@
201 version=`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q $(top_srcdir)/find/version.c`; \
202 find=`echo find|sed '$(transform)'`; \
203 frcode=`echo frcode|sed '$(transform)'`; \
204 bigram=`echo bigram|sed '$(transform)'`; \
205 code=`echo code|sed '$(transform)'`; \
206 sed \
207 -e "s,@bindir@,$(bindir)," \
208 -e "s,@libexecdir@,$(libexecdir)," \
209 -e "s,@LOCATE_DB@,$(LOCATE_DB)," \
210 -e "s,@version@,$$version," \
211 -e "s,@find@,$$find," \
212 -e "s,@frcode@,$$frcode," \
213 -e "s,@bigram@,$$bigram," \
214 -e "s,@code@,$$code," \
215 $(srcdir)/updatedb.sh > $@
216 chmod +x $@
218 install::
219 $(top_srcdir)/mkinstalldirs $(localstatedir)
221 frcode.o code.o locate.o: locatedb.h
222 locate.o: ../lib/fnmatch.h ../lib/getopt.h