Merge from vendor branch BSDTAR:
[dragonfly.git] / contrib / com_err / Makefile.in
1 # Makefile.in generated automatically by automake 1.4 from Makefile.am
2
3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 # This Makefile.in is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 # $Id: Makefile.am,v 1.23 1999/04/09 18:26:55 assar Exp $
14
15
16 # $Id: Makefile.am.common,v 1.3 1999/04/01 14:58:43 joda Exp $
17
18
19 # $Id: Makefile.am.common,v 1.12 1999/07/28 00:54:29 assar Exp $
20
21
22 SHELL = @SHELL@
23
24 srcdir = @srcdir@
25 top_srcdir = @top_srcdir@
26 VPATH = @srcdir@
27 prefix = @prefix@
28 exec_prefix = @exec_prefix@
29
30 bindir = @bindir@
31 sbindir = @sbindir@
32 libexecdir = @libexecdir@
33 datadir = @datadir@
34 sysconfdir = @sysconfdir@
35 sharedstatedir = @sharedstatedir@
36 localstatedir = @localstatedir@
37 libdir = @libdir@
38 infodir = @infodir@
39 mandir = @mandir@
40 includedir = @includedir@
41 oldincludedir = /usr/include
42
43 DESTDIR =
44
45 pkgdatadir = $(datadir)/@PACKAGE@
46 pkglibdir = $(libdir)/@PACKAGE@
47 pkgincludedir = $(includedir)/@PACKAGE@
48
49 top_builddir = ../..
50
51 ACLOCAL = @ACLOCAL@
52 AUTOCONF = @AUTOCONF@
53 AUTOMAKE = @AUTOMAKE@
54 AUTOHEADER = @AUTOHEADER@
55
56 INSTALL = @INSTALL@
57 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
58 INSTALL_DATA = @INSTALL_DATA@
59 INSTALL_SCRIPT = @INSTALL_SCRIPT@
60 transform = @program_transform_name@
61
62 NORMAL_INSTALL = :
63 PRE_INSTALL = :
64 POST_INSTALL = :
65 NORMAL_UNINSTALL = :
66 PRE_UNINSTALL = :
67 POST_UNINSTALL = :
68 host_alias = @host_alias@
69 host_triplet = @host@
70 AFS_EXTRA_LD = @AFS_EXTRA_LD@
71 AIX_EXTRA_KAFS = @AIX_EXTRA_KAFS@
72 AWK = @AWK@
73 CANONICAL_HOST = @CANONICAL_HOST@
74 CATMAN = @CATMAN@
75 CATMANEXT = @CATMANEXT@
76 CC = @CC@
77 DBLIB = @DBLIB@
78 EXEEXT = @EXEEXT@
79 EXTRA_LIB45 = @EXTRA_LIB45@
80 GROFF = @GROFF@
81 INCLUDE_ = @INCLUDE_@
82 LD = @LD@
83 LEX = @LEX@
84 LIBOBJS = @LIBOBJS@
85 LIBTOOL = @LIBTOOL@
86 LIB_ = @LIB_@
87 LIB_AUTH_SUBDIRS = @LIB_AUTH_SUBDIRS@
88 LIB_kdb = @LIB_kdb@
89 LIB_otp = @LIB_otp@
90 LIB_roken = @LIB_roken@
91 LIB_security = @LIB_security@
92 LN_S = @LN_S@
93 LTLIBOBJS = @LTLIBOBJS@
94 MAKEINFO = @MAKEINFO@
95 MAKE_X_PROGS_BIN_PROGS = @MAKE_X_PROGS_BIN_PROGS@
96 MAKE_X_PROGS_BIN_SCRPTS = @MAKE_X_PROGS_BIN_SCRPTS@
97 MAKE_X_PROGS_LIBEXEC_PROGS = @MAKE_X_PROGS_LIBEXEC_PROGS@
98 NEED_WRITEAUTH_FALSE = @NEED_WRITEAUTH_FALSE@
99 NEED_WRITEAUTH_TRUE = @NEED_WRITEAUTH_TRUE@
100 NM = @NM@
101 NROFF = @NROFF@
102 OBJEXT = @OBJEXT@
103 PACKAGE = @PACKAGE@
104 RANLIB = @RANLIB@
105 VERSION = @VERSION@
106 VOID_RETSIGTYPE = @VOID_RETSIGTYPE@
107 WFLAGS = @WFLAGS@
108 WFLAGS_NOIMPLICITINT = @WFLAGS_NOIMPLICITINT@
109 WFLAGS_NOUNUSED = @WFLAGS_NOUNUSED@
110 YACC = @YACC@
111
112 AUTOMAKE_OPTIONS = foreign no-dependencies
113
114 SUFFIXES = .et .h .1 .3 .5 .8 .cat1 .cat3 .cat5 .cat8 .x
115
116 INCLUDES = -I$(top_builddir)/include
117
118 AM_CFLAGS =  $(WFLAGS)
119
120 COMPILE_ET = $(top_builddir)/lib/com_err/compile_et
121
122 buildinclude = $(top_builddir)/include
123
124 LIB_XauReadAuth = @LIB_XauReadAuth@
125 LIB_crypt = @LIB_crypt@
126 LIB_dbm_firstkey = @LIB_dbm_firstkey@
127 LIB_dbopen = @LIB_dbopen@
128 LIB_dlopen = @LIB_dlopen@
129 LIB_dn_expand = @LIB_dn_expand@
130 LIB_el_init = @LIB_el_init@
131 LIB_getattr = @LIB_getattr@
132 LIB_gethostbyname = @LIB_gethostbyname@
133 LIB_getpwent_r = @LIB_getpwent_r@
134 LIB_getpwnam_r = @LIB_getpwnam_r@
135 LIB_getsockopt = @LIB_getsockopt@
136 LIB_logout = @LIB_logout@
137 LIB_logwtmp = @LIB_logwtmp@
138 LIB_odm_initialize = @LIB_odm_initialize@
139 LIB_readline = @LIB_readline@
140 LIB_res_search = @LIB_res_search@
141 LIB_setpcred = @LIB_setpcred@
142 LIB_setsockopt = @LIB_setsockopt@
143 LIB_socket = @LIB_socket@
144 LIB_syslog = @LIB_syslog@
145 LIB_tgetent = @LIB_tgetent@
146
147 HESIODLIB = @HESIODLIB@
148 HESIODINCLUDE = @HESIODINCLUDE@
149 INCLUDE_hesiod = @INCLUDE_hesiod@
150 LIB_hesiod = @LIB_hesiod@
151
152 INCLUDE_krb4 = @INCLUDE_krb4@
153 LIB_krb4 = @LIB_krb4@
154
155 INCLUDE_readline = @INCLUDE_readline@
156
157 LEXLIB = @LEXLIB@
158
159 cat1dir = $(mandir)/cat1
160 cat3dir = $(mandir)/cat3
161 cat5dir = $(mandir)/cat5
162 cat8dir = $(mandir)/cat8
163
164 MANRX = \(.*\)\.\([0-9]\)
165 CATSUFFIX = @CATSUFFIX@
166
167 NROFF_MAN = groff -mandoc -Tascii
168
169 @KRB4_TRUE@LIB_kafs = $(top_builddir)/lib/kafs/libkafs.la $(AIX_EXTRA_KAFS)
170
171 @KRB5_TRUE@LIB_krb5 = $(top_builddir)/lib/krb5/libkrb5.la       $(top_builddir)/lib/asn1/libasn1.la
172 @KRB5_TRUE@LIB_gssapi = $(top_builddir)/lib/gssapi/libgssapi.la
173
174 CHECK_LOCAL = $(PROGRAMS)
175
176 YFLAGS = -d
177
178 lib_LTLIBRARIES = libcom_err.la
179 libcom_err_la_LDFLAGS = -version-info 1:0:0
180
181 bin_PROGRAMS = compile_et
182
183 include_HEADERS = com_err.h com_right.h
184
185 compile_et_SOURCES = compile_et.c compile_et.h parse.y lex.l
186
187 libcom_err_la_SOURCES = error.c com_err.c roken_rename.h
188
189 CLEANFILES = lex.c parse.c parse.h
190
191 compile_et_LDADD =      $(LIB_roken)    $(LEXLIB)
192
193 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
194 CONFIG_HEADER = ../../include/config.h
195 CONFIG_CLEAN_FILES = 
196 LTLIBRARIES =  $(lib_LTLIBRARIES)
197
198
199 DEFS = @DEFS@ -I. -I$(srcdir) -I../../include
200 CPPFLAGS = @CPPFLAGS@
201 LDFLAGS = @LDFLAGS@
202 LIBS = @LIBS@
203 X_CFLAGS = @X_CFLAGS@
204 X_LIBS = @X_LIBS@
205 X_EXTRA_LIBS = @X_EXTRA_LIBS@
206 X_PRE_LIBS = @X_PRE_LIBS@
207 libcom_err_la_LIBADD = 
208 libcom_err_la_OBJECTS =  error.lo com_err.lo
209 bin_PROGRAMS =  compile_et$(EXEEXT)
210 PROGRAMS =  $(bin_PROGRAMS)
211
212 compile_et_OBJECTS =  compile_et.$(OBJEXT) parse.$(OBJEXT) lex.$(OBJEXT)
213 compile_et_DEPENDENCIES = 
214 compile_et_LDFLAGS = 
215 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
216 CFLAGS = @CFLAGS@
217 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
218 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
219 CCLD = $(CC)
220 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
221 HEADERS =  $(include_HEADERS)
222
223 DIST_COMMON =  ChangeLog Makefile.am Makefile.in lex.c parse.c
224
225
226 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
227
228 TAR = tar
229 GZIP_ENV = --best
230 SOURCES = $(libcom_err_la_SOURCES) $(compile_et_SOURCES)
231 OBJECTS = $(libcom_err_la_OBJECTS) $(compile_et_OBJECTS)
232
233 all: all-redirect
234 .SUFFIXES:
235 .SUFFIXES: .1 .3 .5 .8 .S .c .cat1 .cat3 .cat5 .cat8 .et .h .l .lo .o .obj .s .x .y
236 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/Makefile.am.common $(top_srcdir)/cf/Makefile.am.common
237         cd $(top_srcdir) && $(AUTOMAKE) --foreign lib/com_err/Makefile
238
239 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
240         cd $(top_builddir) \
241           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
242
243
244 mostlyclean-libLTLIBRARIES:
245
246 clean-libLTLIBRARIES:
247         -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
248
249 distclean-libLTLIBRARIES:
250
251 maintainer-clean-libLTLIBRARIES:
252
253 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
254         @$(NORMAL_INSTALL)
255         $(mkinstalldirs) $(DESTDIR)$(libdir)
256         @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
257           if test -f $$p; then \
258             echo "$(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
259             $(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
260           else :; fi; \
261         done
262
263 uninstall-libLTLIBRARIES:
264         @$(NORMAL_UNINSTALL)
265         list='$(lib_LTLIBRARIES)'; for p in $$list; do \
266           $(LIBTOOL)  --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
267         done
268
269 .c.o:
270         $(COMPILE) -c $<
271
272 # FIXME: We should only use cygpath when building on Windows,
273 # and only if it is available.
274 .c.obj:
275         $(COMPILE) -c `cygpath -w $<`
276
277 .s.o:
278         $(COMPILE) -c $<
279
280 .S.o:
281         $(COMPILE) -c $<
282
283 mostlyclean-compile:
284         -rm -f *.o core *.core
285         -rm -f *.$(OBJEXT)
286
287 clean-compile:
288
289 distclean-compile:
290         -rm -f *.tab.c
291
292 maintainer-clean-compile:
293
294 .c.lo:
295         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
296
297 .s.lo:
298         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
299
300 .S.lo:
301         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
302
303 mostlyclean-libtool:
304         -rm -f *.lo
305
306 clean-libtool:
307         -rm -rf .libs _libs
308
309 distclean-libtool:
310
311 maintainer-clean-libtool:
312
313 libcom_err.la: $(libcom_err_la_OBJECTS) $(libcom_err_la_DEPENDENCIES)
314         $(LINK) -rpath $(libdir) $(libcom_err_la_LDFLAGS) $(libcom_err_la_OBJECTS) $(libcom_err_la_LIBADD) $(LIBS)
315
316 mostlyclean-binPROGRAMS:
317
318 clean-binPROGRAMS:
319         -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
320
321 distclean-binPROGRAMS:
322
323 maintainer-clean-binPROGRAMS:
324
325 install-binPROGRAMS: $(bin_PROGRAMS)
326         @$(NORMAL_INSTALL)
327         $(mkinstalldirs) $(DESTDIR)$(bindir)
328         @list='$(bin_PROGRAMS)'; for p in $$list; do \
329           if test -f $$p; then \
330             echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
331             $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
332           else :; fi; \
333         done
334
335 uninstall-binPROGRAMS:
336         @$(NORMAL_UNINSTALL)
337         list='$(bin_PROGRAMS)'; for p in $$list; do \
338           rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
339         done
340
341 compile_et$(EXEEXT): $(compile_et_OBJECTS) $(compile_et_DEPENDENCIES)
342         @rm -f compile_et$(EXEEXT)
343         $(LINK) $(compile_et_LDFLAGS) $(compile_et_OBJECTS) $(compile_et_LDADD) $(LIBS)
344 .l.c:
345         $(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
346 .y.c:
347         $(YACC) $(AM_YFLAGS) $(YFLAGS) $< && mv y.tab.c $*.c
348         if test -f y.tab.h; then \
349         if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
350         else :; fi
351 parse.h: parse.c
352
353
354 install-includeHEADERS: $(include_HEADERS)
355         @$(NORMAL_INSTALL)
356         $(mkinstalldirs) $(DESTDIR)$(includedir)
357         @list='$(include_HEADERS)'; for p in $$list; do \
358           if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
359           echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
360           $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
361         done
362
363 uninstall-includeHEADERS:
364         @$(NORMAL_UNINSTALL)
365         list='$(include_HEADERS)'; for p in $$list; do \
366           rm -f $(DESTDIR)$(includedir)/$$p; \
367         done
368
369 tags: TAGS
370
371 ID: $(HEADERS) $(SOURCES) $(LISP)
372         list='$(SOURCES) $(HEADERS)'; \
373         unique=`for i in $$list; do echo $$i; done | \
374           awk '    { files[$$0] = 1; } \
375                END { for (i in files) print i; }'`; \
376         here=`pwd` && cd $(srcdir) \
377           && mkid -f$$here/ID $$unique $(LISP)
378
379 TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
380         tags=; \
381         here=`pwd`; \
382         list='$(SOURCES) $(HEADERS)'; \
383         unique=`for i in $$list; do echo $$i; done | \
384           awk '    { files[$$0] = 1; } \
385                END { for (i in files) print i; }'`; \
386         test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
387           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
388
389 mostlyclean-tags:
390
391 clean-tags:
392
393 distclean-tags:
394         -rm -f TAGS ID
395
396 maintainer-clean-tags:
397
398 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
399
400 subdir = lib/com_err
401
402 distdir: $(DISTFILES)
403         @for file in $(DISTFILES); do \
404           d=$(srcdir); \
405           if test -d $$d/$$file; then \
406             cp -pr $$/$$file $(distdir)/$$file; \
407           else \
408             test -f $(distdir)/$$file \
409             || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
410             || cp -p $$d/$$file $(distdir)/$$file || :; \
411           fi; \
412         done
413         $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
414 info-am:
415 info: info-am
416 dvi-am:
417 dvi: dvi-am
418 check-am: all-am
419         $(MAKE) $(AM_MAKEFLAGS) check-local
420 check: check-am
421 installcheck-am:
422 installcheck: installcheck-am
423 install-exec-am: install-libLTLIBRARIES install-binPROGRAMS
424         @$(NORMAL_INSTALL)
425         $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
426 install-exec: install-exec-am
427
428 install-data-am: install-includeHEADERS install-data-local
429 install-data: install-data-am
430
431 install-am: all-am
432         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
433 install: install-am
434 uninstall-am: uninstall-libLTLIBRARIES uninstall-binPROGRAMS \
435                 uninstall-includeHEADERS
436 uninstall: uninstall-am
437 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) all-local
438 all-redirect: all-am
439 install-strip:
440         $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
441 installdirs:
442         $(mkinstalldirs)  $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) \
443                 $(DESTDIR)$(includedir)
444
445
446 mostlyclean-generic:
447
448 clean-generic:
449         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
450
451 distclean-generic:
452         -rm -f Makefile $(CONFIG_CLEAN_FILES)
453         -rm -f config.cache config.log stamp-h stamp-h[0-9]*
454
455 maintainer-clean-generic:
456         -test -z "lexlparsehparsec" || rm -f lexl parseh parsec
457 mostlyclean-am:  mostlyclean-libLTLIBRARIES mostlyclean-compile \
458                 mostlyclean-libtool mostlyclean-binPROGRAMS \
459                 mostlyclean-tags mostlyclean-generic
460
461 mostlyclean: mostlyclean-am
462
463 clean-am:  clean-libLTLIBRARIES clean-compile clean-libtool \
464                 clean-binPROGRAMS clean-tags clean-generic \
465                 mostlyclean-am
466
467 clean: clean-am
468
469 distclean-am:  distclean-libLTLIBRARIES distclean-compile \
470                 distclean-libtool distclean-binPROGRAMS distclean-tags \
471                 distclean-generic clean-am
472         -rm -f libtool
473
474 distclean: distclean-am
475
476 maintainer-clean-am:  maintainer-clean-libLTLIBRARIES \
477                 maintainer-clean-compile maintainer-clean-libtool \
478                 maintainer-clean-binPROGRAMS maintainer-clean-tags \
479                 maintainer-clean-generic distclean-am
480         @echo "This command is intended for maintainers to use;"
481         @echo "it deletes files that may require special tools to rebuild."
482
483 maintainer-clean: maintainer-clean-am
484
485 .PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
486 clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
487 uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
488 distclean-compile clean-compile maintainer-clean-compile \
489 mostlyclean-libtool distclean-libtool clean-libtool \
490 maintainer-clean-libtool mostlyclean-binPROGRAMS distclean-binPROGRAMS \
491 clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
492 install-binPROGRAMS uninstall-includeHEADERS install-includeHEADERS \
493 tags mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
494 distdir info-am info dvi-am dvi check-local check check-am \
495 installcheck-am installcheck install-exec-am install-exec \
496 install-data-local install-data-am install-data install-am install \
497 uninstall-am uninstall all-local all-redirect all-am all installdirs \
498 mostlyclean-generic distclean-generic clean-generic \
499 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
500
501
502 install-suid-programs:
503         @foo='$(bin_SUIDS)'; \
504         for file in $$foo; do \
505         x=$(DESTDIR)$(bindir)/$$file; \
506         if chown 0:0 $$x && chmod u+s $$x; then :; else \
507         chmod 0 $$x; fi; done
508
509 install-exec-hook: install-suid-programs
510
511 install-build-headers:: $(include_HEADERS) $(build_HEADERZ)
512         @foo='$(include_HEADERS) $(build_HEADERZ)'; \
513         for f in $$foo; do \
514                 f=`basename $$f`; \
515                 if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
516                 else file="$$f"; fi; \
517                 if cmp -s  $$file $(buildinclude)/$$f 2> /dev/null ; then \
518                 : ; else \
519                         echo " $(INSTALL_DATA) $$file $(buildinclude)/$$f"; \
520                         $(INSTALL_DATA) $$file $(buildinclude)/$$f; \
521                 fi ; \
522         done
523
524 all-local: install-build-headers
525 #NROFF_MAN = nroff -man
526 .1.cat1:
527         $(NROFF_MAN) $< > $@
528 .3.cat3:
529         $(NROFF_MAN) $< > $@
530 .5.cat5:
531         $(NROFF_MAN) $< > $@
532 .8.cat8:
533         $(NROFF_MAN) $< > $@
534
535 dist-cat1-mans:
536         @foo='$(man1_MANS)'; \
537         bar='$(man_MANS)'; \
538         for i in $$bar; do \
539         case $$i in \
540         *.1) foo="$$foo $$i";; \
541         esac; done ;\
542         for i in $$foo; do \
543                 x=`echo $$i | sed 's/\.[^.]*$$/.cat1/'`; \
544                 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
545                 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
546         done
547
548 dist-cat3-mans:
549         @foo='$(man3_MANS)'; \
550         bar='$(man_MANS)'; \
551         for i in $$bar; do \
552         case $$i in \
553         *.3) foo="$$foo $$i";; \
554         esac; done ;\
555         for i in $$foo; do \
556                 x=`echo $$i | sed 's/\.[^.]*$$/.cat3/'`; \
557                 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
558                 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
559         done
560
561 dist-cat5-mans:
562         @foo='$(man5_MANS)'; \
563         bar='$(man_MANS)'; \
564         for i in $$bar; do \
565         case $$i in \
566         *.5) foo="$$foo $$i";; \
567         esac; done ;\
568         for i in $$foo; do \
569                 x=`echo $$i | sed 's/\.[^.]*$$/.cat5/'`; \
570                 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
571                 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
572         done
573
574 dist-cat8-mans:
575         @foo='$(man8_MANS)'; \
576         bar='$(man_MANS)'; \
577         for i in $$bar; do \
578         case $$i in \
579         *.8) foo="$$foo $$i";; \
580         esac; done ;\
581         for i in $$foo; do \
582                 x=`echo $$i | sed 's/\.[^.]*$$/.cat8/'`; \
583                 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
584                 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
585         done
586
587 dist-hook: dist-cat1-mans dist-cat3-mans dist-cat5-mans dist-cat8-mans
588
589 install-cat1-mans:
590         @ext=1;\
591         foo='$(man1_MANS)'; \
592         bar='$(man_MANS)'; \
593         for i in $$bar; do \
594         case $$i in \
595         *.1) foo="$$foo $$i";; \
596         esac; done; \
597         if test "$$foo"; then \
598                 $(mkinstalldirs) $(DESTDIR)$(cat1dir); \
599                 for x in $$foo; do \
600                         f=`echo $$x | sed 's/\.[^.]*$$/.cat1/'`; \
601                         if test -f "$(srcdir)/$$f"; then \
602                                 b=`echo $$x | sed 's!$(MANRX)!\1!'`; \
603                                 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(cat1dir)/$$b.$(CATSUFFIX)";\
604                                 $(INSTALL_DATA) $(srcdir)/$$g $(DESTDIR)$(cat1dir)/$$b.$(CATSUFFIX);\
605                          fi; \
606                 done ;\
607         fi
608
609 install-cat3-mans:
610         @ext=3;\
611         foo='$(man3_MANS)'; \
612         bar='$(man_MANS)'; \
613         for i in $$bar; do \
614         case $$i in \
615         *.3) foo="$$foo $$i";; \
616         esac; done; \
617         if test "$$foo"; then \
618                 $(mkinstalldirs) $(DESTDIR)$(cat3dir); \
619                 for x in $$foo; do \
620                         f=`echo $$x | sed 's/\.[^.]*$$/.cat3/'`; \
621                         if test -f "$(srcdir)/$$f"; then \
622                                 b=`echo $$x | sed 's!$(MANRX)!\1!'`; \
623                                 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(cat3dir)/$$b.$(CATSUFFIX)";\
624                                 $(INSTALL_DATA) $(srcdir)/$$g $(DESTDIR)$(cat3dir)/$$b.$(CATSUFFIX);\
625                          fi; \
626                 done ;\
627         fi
628
629 install-cat5-mans:
630         @ext=5;\
631         foo='$(man5_MANS)'; \
632         bar='$(man_MANS)'; \
633         for i in $$bar; do \
634         case $$i in \
635         *.5) foo="$$foo $$i";; \
636         esac; done; \
637         if test "$$foo"; then \
638                 $(mkinstalldirs) $(DESTDIR)$(cat5dir); \
639                 for x in $$foo; do \
640                         f=`echo $$x | sed 's/\.[^.]*$$/.cat5/'`; \
641                         if test -f "$(srcdir)/$$f"; then \
642                                 b=`echo $$x | sed 's!$(MANRX)!\1!'`; \
643                                 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(cat5dir)/$$b.$(CATSUFFIX)";\
644                                 $(INSTALL_DATA) $(srcdir)/$$g $(DESTDIR)$(cat5dir)/$$b.$(CATSUFFIX);\
645                          fi; \
646                 done ;\
647         fi
648
649 install-cat8-mans:
650         @ext=8;\
651         foo='$(man8_MANS)'; \
652         bar='$(man_MANS)'; \
653         for i in $$bar; do \
654         case $$i in \
655         *.8) foo="$$foo $$i";; \
656         esac; done; \
657         if test "$$foo"; then \
658                 $(mkinstalldirs) $(DESTDIR)$(cat8dir); \
659                 for x in $$foo; do \
660                         f=`echo $$x | sed 's/\.[^.]*$$/.cat8/'`; \
661                         if test -f "$(srcdir)/$$f"; then \
662                                 b=`echo $$x | sed 's!$(MANRX)!\1!'`; \
663                                 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(cat8dir)/$$b.$(CATSUFFIX)";\
664                                 $(INSTALL_DATA) $(srcdir)/$$g $(DESTDIR)$(cat8dir)/$$b.$(CATSUFFIX);\
665                          fi; \
666                 done ;\
667         fi
668
669 install-cat-mans: install-cat1-mans install-cat3-mans install-cat5-mans install-cat8-mans
670
671 install-data-local: install-cat-mans
672
673 .et.h:
674         $(COMPILE_ET) $<
675 .et.c:
676         $(COMPILE_ET) $<
677
678 .x.c:
679         @cmp -s $< $@ 2> /dev/null || cp $< $@
680
681 check-local::
682         @foo='$(CHECK_LOCAL)'; \
683           if test "$$foo"; then \
684           failed=0; all=0; \
685           for i in $$foo; do \
686             all=`expr $$all + 1`; \
687             if ./$$i --version > /dev/null 2>&1; then \
688               echo "PASS: $$i"; \
689             else \
690               echo "FAIL: $$i"; \
691               failed=`expr $$failed + 1`; \
692             fi; \
693           done; \
694           if test "$$failed" -eq 0; then \
695             banner="All $$all tests passed"; \
696           else \
697             banner="$$failed of $$all tests failed"; \
698           fi; \
699           dashes=`echo "$$banner" | sed s/./=/g`; \
700           echo "$$dashes"; \
701           echo "$$banner"; \
702           echo "$$dashes"; \
703           test "$$failed" -eq 0; \
704         fi
705
706 $(compile_et_OBJECTS): parse.h
707
708 # Tell versions [3.59,3.63) of GNU make to not export all variables.
709 # Otherwise a system limit (for SysV at least) may be exceeded.
710 .NOEXPORT: