.
[coreutils.git] / man / Makefile.in
blob3ce5f6d390be3471d8085efd575a5a10dad34871
1 # Makefile.in generated by automake 1.7.6b from Makefile.am.
2 # @configure_input@
4 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
5 # Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
15 @SET_MAKE@
17 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkgincludedir = $(includedir)/@PACKAGE@
23 top_builddir = ..
25 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
26 INSTALL = @INSTALL@
27 install_sh_DATA = $(install_sh) -c -m 644
28 install_sh_PROGRAM = $(install_sh) -c
29 install_sh_SCRIPT = $(install_sh) -c
30 INSTALL_HEADER = $(INSTALL_DATA)
31 transform = $(program_transform_name)
32 NORMAL_INSTALL = :
33 PRE_INSTALL = :
34 POST_INSTALL = :
35 NORMAL_UNINSTALL = :
36 PRE_UNINSTALL = :
37 POST_UNINSTALL = :
38 host_triplet = @host@
39 ACLOCAL = @ACLOCAL@
40 ALLOCA = @ALLOCA@
41 ALLOCA_H = @ALLOCA_H@
42 AMDEP_FALSE = @AMDEP_FALSE@
43 AMDEP_TRUE = @AMDEP_TRUE@
44 AMTAR = @AMTAR@
45 AUTOCONF = @AUTOCONF@
46 AUTOHEADER = @AUTOHEADER@
47 AUTOMAKE = @AUTOMAKE@
48 AWK = @AWK@
49 CC = @CC@
50 CCDEPMODE = @CCDEPMODE@
51 CFLAGS = @CFLAGS@
52 CPP = @CPP@
53 CPPFLAGS = @CPPFLAGS@
54 CYGPATH_W = @CYGPATH_W@
55 DEFS = @DEFS@
56 DEPDIR = @DEPDIR@
57 DF_PROG = @DF_PROG@
58 ECHO_C = @ECHO_C@
59 ECHO_N = @ECHO_N@
60 ECHO_T = @ECHO_T@
61 EGREP = @EGREP@
62 EXEEXT = @EXEEXT@
63 FESETROUND_LIBM = @FESETROUND_LIBM@
64 FNMATCH_H = @FNMATCH_H@
65 GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
66 GLIBC21 = @GLIBC21@
67 GMSGFMT = @GMSGFMT@
68 GNU_PACKAGE = @GNU_PACKAGE@
69 HAVE__BOOL = @HAVE__BOOL@
70 HELP2MAN = @HELP2MAN@
71 INSTALL_DATA = @INSTALL_DATA@
72 INSTALL_PROGRAM = @INSTALL_PROGRAM@
73 INSTALL_SCRIPT = @INSTALL_SCRIPT@
74 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
75 INTLLIBS = @INTLLIBS@
76 KMEM_GROUP = @KMEM_GROUP@
77 LDFLAGS = @LDFLAGS@
78 LIBICONV = @LIBICONV@
79 LIBINTL = @LIBINTL@
80 LIBOBJS = @LIBOBJS@
81 LIBS = @LIBS@
82 LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
83 LIB_CRYPT = @LIB_CRYPT@
84 LIB_NANOSLEEP = @LIB_NANOSLEEP@
85 LN_S = @LN_S@
86 LTLIBICONV = @LTLIBICONV@
87 LTLIBINTL = @LTLIBINTL@
88 LTLIBOBJS = @LTLIBOBJS@
89 MAKEINFO = @MAKEINFO@
90 MAN = @MAN@
91 MKINSTALLDIRS = @MKINSTALLDIRS@
92 MSGFMT = @MSGFMT@
93 MSGMERGE = @MSGMERGE@
94 NEED_SETGID = @NEED_SETGID@
95 OBJEXT = @OBJEXT@
96 OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
97 PACKAGE = @PACKAGE@
98 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
99 PACKAGE_NAME = @PACKAGE_NAME@
100 PACKAGE_STRING = @PACKAGE_STRING@
101 PACKAGE_TARNAME = @PACKAGE_TARNAME@
102 PACKAGE_VERSION = @PACKAGE_VERSION@
103 PATH_SEPARATOR = @PATH_SEPARATOR@
104 PERL = @PERL@
105 POSUB = @POSUB@
106 POW_LIB = @POW_LIB@
107 RANLIB = @RANLIB@
108 SEQ_LIBM = @SEQ_LIBM@
109 SET_MAKE = @SET_MAKE@
110 SHELL = @SHELL@
111 SQRT_LIBM = @SQRT_LIBM@
112 STDBOOL_H = @STDBOOL_H@
113 STRIP = @STRIP@
114 U = @U@
115 USE_NLS = @USE_NLS@
116 VERSION = @VERSION@
117 XGETTEXT = @XGETTEXT@
118 YACC = @YACC@
119 ac_ct_CC = @ac_ct_CC@
120 ac_ct_RANLIB = @ac_ct_RANLIB@
121 ac_ct_STRIP = @ac_ct_STRIP@
122 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
123 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
124 am__include = @am__include@
125 am__leading_dot = @am__leading_dot@
126 am__quote = @am__quote@
127 bindir = @bindir@
128 build = @build@
129 build_alias = @build_alias@
130 build_cpu = @build_cpu@
131 build_os = @build_os@
132 build_vendor = @build_vendor@
133 datadir = @datadir@
134 exec_prefix = @exec_prefix@
135 host = @host@
136 host_alias = @host_alias@
137 host_cpu = @host_cpu@
138 host_os = @host_os@
139 host_vendor = @host_vendor@
140 includedir = @includedir@
141 infodir = @infodir@
142 install_sh = @install_sh@
143 libdir = @libdir@
144 libexecdir = @libexecdir@
145 localstatedir = @localstatedir@
146 mandir = @mandir@
147 oldincludedir = @oldincludedir@
148 prefix = @prefix@
149 program_transform_name = @program_transform_name@
150 sbindir = @sbindir@
151 sharedstatedir = @sharedstatedir@
152 sysconfdir = @sysconfdir@
153 target_alias = @target_alias@
154 dist_man_MANS = \
155 basename.1 cat.1 chgrp.1 chmod.1 chown.1 chroot.1 cksum.1 comm.1 \
156 cp.1 csplit.1 cut.1 date.1 dd.1 df.1 dir.1 dircolors.1 dirname.1 du.1 \
157 echo.1 env.1 expand.1 expr.1 factor.1 false.1 fmt.1 fold.1 groups.1 \
158 head.1 hostid.1 hostname.1 id.1 install.1 join.1 kill.1 \
159 link.1 ln.1 logname.1 \
160 ls.1 md5sum.1 mkdir.1 mkfifo.1 mknod.1 mv.1 nice.1 nl.1 nohup.1 od.1 \
161 paste.1 pathchk.1 pinky.1 pr.1 printenv.1 printf.1 ptx.1 pwd.1 readlink.1 \
162 rm.1 rmdir.1 seq.1 sha1sum.1 shred.1 sleep.1 sort.1 split.1 stat.1 stty.1 \
163 su.1 sum.1 sync.1 tac.1 tail.1 tee.1 test.1 touch.1 tr.1 true.1 tsort.1 \
164 tty.1 uname.1 unexpand.1 uniq.1 unlink.1 uptime.1 users.1 vdir.1 wc.1 \
165 who.1 whoami.1 yes.1
168 man_aux = $(dist_man_MANS:.1=.x)
170 EXTRA_DIST = $(man_aux)
171 MAINTAINERCLEANFILES = $(man_MANS)
173 # Depend on configure.ac to get version number changes.
174 common_dep = $(top_srcdir)/configure.ac
176 SUFFIXES = .x .1
178 # Ensure that help2man runs the ../src/ginstall binary as
179 # `install' when creating install.1.
180 # Similarly, ensure that it uses the ../src/[ binary to create test.1.
181 t = $*.td
182 mapped_name = `echo $*|sed 's/install/ginstall/; s/test/[/'`
184 # Sort in traditional ASCII order, regardless of the current locale;
185 # otherwise we may get into trouble with distinct strings that the
186 # current locale considers to be equal.
187 ASSORT = LC_ALL=C sort
189 programs = \
190 echo 'spy:;@echo $$(all_programs)' \
191 | MAKEFLAGS= $(MAKE) -s -C ../src -f Makefile -f - spy \
192 | fmt -1 | $(ASSORT) -u | grep -v '\['
194 subdir = man
195 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
196 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
197 CONFIG_HEADER = $(top_builddir)/config.h
198 CONFIG_CLEAN_FILES =
199 DIST_SOURCES =
201 NROFF = nroff
202 MANS = $(dist_man_MANS)
203 DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.in Makefile.am
204 all: all-am
206 .SUFFIXES:
207 .SUFFIXES: .x .1
208 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
209 cd $(top_srcdir) && \
210 $(AUTOMAKE) --gnits man/Makefile
211 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
212 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
213 uninstall-info-am:
215 man1dir = $(mandir)/man1
216 install-man1: $(man1_MANS) $(man_MANS)
217 @$(NORMAL_INSTALL)
218 $(mkinstalldirs) $(DESTDIR)$(man1dir)
219 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
220 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
221 for i in $$l2; do \
222 case "$$i" in \
223 *.1*) list="$$list $$i" ;; \
224 esac; \
225 done; \
226 for i in $$list; do \
227 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
228 else file=$$i; fi; \
229 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
230 case "$$ext" in \
231 1*) ;; \
232 *) ext='1' ;; \
233 esac; \
234 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
235 inst=`echo $$inst | sed -e 's/^.*\///'`; \
236 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
237 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
238 $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
239 done
240 uninstall-man1:
241 @$(NORMAL_UNINSTALL)
242 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
243 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
244 for i in $$l2; do \
245 case "$$i" in \
246 *.1*) list="$$list $$i" ;; \
247 esac; \
248 done; \
249 for i in $$list; do \
250 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
251 case "$$ext" in \
252 1*) ;; \
253 *) ext='1' ;; \
254 esac; \
255 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
256 inst=`echo $$inst | sed -e 's/^.*\///'`; \
257 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
258 echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
259 rm -f $(DESTDIR)$(man1dir)/$$inst; \
260 done
261 tags: TAGS
262 TAGS:
264 ctags: CTAGS
265 CTAGS:
267 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
269 top_distdir = ..
270 distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
272 distdir: $(DISTFILES)
273 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
274 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
275 list='$(DISTFILES)'; for file in $$list; do \
276 case $$file in \
277 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
278 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
279 esac; \
280 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
281 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
282 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
283 dir="/$$dir"; \
284 $(mkinstalldirs) "$(distdir)$$dir"; \
285 else \
286 dir=''; \
287 fi; \
288 if test -d $$d/$$file; then \
289 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
290 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
291 fi; \
292 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
293 else \
294 test -f $(distdir)/$$file \
295 || cp -p $$d/$$file $(distdir)/$$file \
296 || exit 1; \
297 fi; \
298 done
299 check-am: all-am
300 $(MAKE) $(AM_MAKEFLAGS) check-local
301 check: check-am
302 all-am: Makefile $(MANS)
304 installdirs:
305 $(mkinstalldirs) $(DESTDIR)$(man1dir)
306 install: install-am
307 install-exec: install-exec-am
308 install-data: install-data-am
309 uninstall: uninstall-am
311 install-am: all-am
312 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
314 installcheck: installcheck-am
315 install-strip:
316 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
317 INSTALL_STRIP_FLAG=-s \
318 `test -z '$(STRIP)' || \
319 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
320 mostlyclean-generic:
322 clean-generic:
324 distclean-generic:
325 -rm -f $(CONFIG_CLEAN_FILES)
327 maintainer-clean-generic:
328 @echo "This command is intended for maintainers to use"
329 @echo "it deletes files that may require special tools to rebuild."
330 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
331 clean: clean-am
333 clean-am: clean-generic mostlyclean-am
335 distclean: distclean-am
336 -rm -f Makefile
338 distclean-am: clean-am distclean-generic
340 dvi: dvi-am
342 dvi-am:
344 info: info-am
346 info-am:
348 install-data-am: install-man
350 install-exec-am:
352 install-info: install-info-am
354 install-man: install-man1
356 installcheck-am:
358 maintainer-clean: maintainer-clean-am
359 -rm -f Makefile
361 maintainer-clean-am: distclean-am maintainer-clean-generic
363 mostlyclean: mostlyclean-am
365 mostlyclean-am: mostlyclean-generic
367 pdf: pdf-am
369 pdf-am:
371 ps: ps-am
373 ps-am:
375 uninstall-am: uninstall-info-am uninstall-man
377 uninstall-man: uninstall-man1
379 .PHONY: all all-am check check-am check-local clean clean-generic \
380 distclean distclean-generic distdir dvi dvi-am info info-am \
381 install install-am install-data install-data-am install-exec \
382 install-exec-am install-info install-info-am install-man \
383 install-man1 install-strip installcheck installcheck-am \
384 installdirs maintainer-clean maintainer-clean-generic \
385 mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
386 uninstall-am uninstall-info-am uninstall-man uninstall-man1
389 basename.1: $(common_dep) $(srcdir)/basename.x ../src/basename.c
390 cat.1: $(common_dep) $(srcdir)/cat.x ../src/cat.c
391 chgrp.1: $(common_dep) $(srcdir)/chgrp.x ../src/chgrp.c
392 chmod.1: $(common_dep) $(srcdir)/chmod.x ../src/chmod.c
393 chown.1: $(common_dep) $(srcdir)/chown.x ../src/chown.c
394 chroot.1: $(common_dep) $(srcdir)/chroot.x ../src/chroot.c
395 cksum.1: $(common_dep) $(srcdir)/cksum.x ../src/cksum.c
396 comm.1: $(common_dep) $(srcdir)/comm.x ../src/comm.c
397 cp.1: $(common_dep) $(srcdir)/cp.x ../src/cp.c
398 csplit.1: $(common_dep) $(srcdir)/csplit.x ../src/csplit.c
399 cut.1: $(common_dep) $(srcdir)/cut.x ../src/cut.c
400 date.1: $(common_dep) $(srcdir)/date.x ../src/date.c
401 dd.1: $(common_dep) $(srcdir)/dd.x ../src/dd.c
402 df.1: $(common_dep) $(srcdir)/df.x ../src/df.c
404 # Note that dir depends on ls.c, since that's where it's --help text is.
405 dir.1: $(common_dep) $(srcdir)/dir.x ../src/ls.c
407 dircolors.1: $(common_dep) $(srcdir)/dircolors.x ../src/dircolors.c
408 dirname.1: $(common_dep) $(srcdir)/dirname.x ../src/dirname.c
409 du.1: $(common_dep) $(srcdir)/du.x ../src/du.c
410 echo.1: $(common_dep) $(srcdir)/echo.x ../src/echo.c
411 env.1: $(common_dep) $(srcdir)/env.x ../src/env.c
412 expand.1: $(common_dep) $(srcdir)/expand.x ../src/expand.c
413 expr.1: $(common_dep) $(srcdir)/expr.x ../src/expr.c
414 factor.1: $(common_dep) $(srcdir)/factor.x ../src/factor.c
415 false.1: $(common_dep) $(srcdir)/false.x ../src/false.c
416 fmt.1: $(common_dep) $(srcdir)/fmt.x ../src/fmt.c
417 fold.1: $(common_dep) $(srcdir)/fold.x ../src/fold.c
418 groups.1: $(common_dep) $(srcdir)/groups.x ../src/groups.sh
419 head.1: $(common_dep) $(srcdir)/head.x ../src/head.c
420 hostid.1: $(common_dep) $(srcdir)/hostid.x ../src/hostid.c
421 hostname.1: $(common_dep) $(srcdir)/hostname.x ../src/hostname.c
422 id.1: $(common_dep) $(srcdir)/id.x ../src/id.c
423 install.1: $(common_dep) $(srcdir)/install.x ../src/install.c
424 join.1: $(common_dep) $(srcdir)/join.x ../src/join.c
425 kill.1: $(common_dep) $(srcdir)/kill.x ../src/kill.c
426 link.1: $(common_dep) $(srcdir)/link.x ../src/link.c
427 ln.1: $(common_dep) $(srcdir)/ln.x ../src/ln.c
428 logname.1: $(common_dep) $(srcdir)/logname.x ../src/logname.c
429 ls.1: $(common_dep) $(srcdir)/ls.x ../src/ls.c
430 md5sum.1: $(common_dep) $(srcdir)/md5sum.x ../src/md5sum.c
431 mkdir.1: $(common_dep) $(srcdir)/mkdir.x ../src/mkdir.c
432 mkfifo.1: $(common_dep) $(srcdir)/mkfifo.x ../src/mkfifo.c
433 mknod.1: $(common_dep) $(srcdir)/mknod.x ../src/mknod.c
434 mv.1: $(common_dep) $(srcdir)/mv.x ../src/mv.c
435 nice.1: $(common_dep) $(srcdir)/nice.x ../src/nice.c
436 nl.1: $(common_dep) $(srcdir)/nl.x ../src/nl.c
437 nohup.1: $(common_dep) $(srcdir)/nohup.x ../src/nohup.c
438 od.1: $(common_dep) $(srcdir)/od.x ../src/od.c
439 paste.1: $(common_dep) $(srcdir)/paste.x ../src/paste.c
440 pathchk.1: $(common_dep) $(srcdir)/pathchk.x ../src/pathchk.c
441 pinky.1: $(common_dep) $(srcdir)/pinky.x ../src/pinky.c
442 pr.1: $(common_dep) $(srcdir)/pr.x ../src/pr.c
443 printenv.1: $(common_dep) $(srcdir)/printenv.x ../src/printenv.c
444 printf.1: $(common_dep) $(srcdir)/printf.x ../src/printf.c
445 ptx.1: $(common_dep) $(srcdir)/ptx.x ../src/ptx.c
446 pwd.1: $(common_dep) $(srcdir)/pwd.x ../src/pwd.c
447 readlink.1: $(common_dep) $(srcdir)/readlink.x ../src/readlink.c
448 rm.1: $(common_dep) $(srcdir)/rm.x ../src/rm.c
449 rmdir.1: $(common_dep) $(srcdir)/rmdir.x ../src/rmdir.c
450 seq.1: $(common_dep) $(srcdir)/seq.x ../src/seq.c
451 sha1sum.1: $(common_dep) $(srcdir)/sha1sum.x ../src/md5sum.c
452 shred.1: $(common_dep) $(srcdir)/shred.x ../src/shred.c
453 sleep.1: $(common_dep) $(srcdir)/sleep.x ../src/sleep.c
454 sort.1: $(common_dep) $(srcdir)/sort.x ../src/sort.c
455 split.1: $(common_dep) $(srcdir)/split.x ../src/split.c
456 stat.1: $(common_dep) $(srcdir)/stat.x ../src/stat.c
457 stty.1: $(common_dep) $(srcdir)/stty.x ../src/stty.c
458 su.1: $(common_dep) $(srcdir)/su.x ../src/su.c
459 sum.1: $(common_dep) $(srcdir)/sum.x ../src/sum.c
460 sync.1: $(common_dep) $(srcdir)/sync.x ../src/sync.c
461 tac.1: $(common_dep) $(srcdir)/tac.x ../src/tac.c
462 tail.1: $(common_dep) $(srcdir)/tail.x ../src/tail.c
463 tee.1: $(common_dep) $(srcdir)/tee.x ../src/tee.c
464 test.1: $(common_dep) $(srcdir)/test.x ../src/test.c
465 touch.1: $(common_dep) $(srcdir)/touch.x ../src/touch.c
466 tr.1: $(common_dep) $(srcdir)/tr.x ../src/tr.c
467 true.1: $(common_dep) $(srcdir)/true.x ../src/true.c
468 tsort.1: $(common_dep) $(srcdir)/tsort.x ../src/tsort.c
469 tty.1: $(common_dep) $(srcdir)/tty.x ../src/tty.c
470 uname.1: $(common_dep) $(srcdir)/uname.x ../src/uname.c
471 unexpand.1: $(common_dep) $(srcdir)/unexpand.x ../src/unexpand.c
472 uniq.1: $(common_dep) $(srcdir)/uniq.x ../src/uniq.c
473 unlink.1: $(common_dep) $(srcdir)/unlink.x ../src/unlink.c
474 uptime.1: $(common_dep) $(srcdir)/uptime.x ../src/uptime.c
475 users.1: $(common_dep) $(srcdir)/users.x ../src/users.c
476 vdir.1: $(common_dep) $(srcdir)/vdir.x ../src/ls.c
477 wc.1: $(common_dep) $(srcdir)/wc.x ../src/wc.c
478 who.1: $(common_dep) $(srcdir)/who.x ../src/who.c
479 whoami.1: $(common_dep) $(srcdir)/whoami.x ../src/whoami.c
480 yes.1: $(common_dep) $(srcdir)/yes.x ../src/yes.c
482 # Note the use of $t/$*, rather than just `$*' as in other packages.
483 # That is necessary to avoid failures for programs that are also shell built-in
484 # functions like echo, false, printf, pwd.
485 .x.1:
486 @rm -f $@
487 @echo "Updating man page $@"; \
488 mkdir $t; \
489 (cd $t && $(LN_S) ../../src/$(mapped_name)$(EXEEXT) $*$(EXEEXT)); \
490 $(HELP2MAN) \
491 --include=$(srcdir)/$*.x \
492 --output=$@ $t/$*$(EXEEXT)
493 @chmod a-w $@
494 @rm -rf $t
496 check-local: check-x-vs-1 check-programs-vs-x
498 # Ensure that for each .x file in this directory, there is a
499 # corresponding .1 file in the definition of $(dist_man_MANS) above.
500 .PHONY: check-x-vs-1
501 check-x-vs-1:
502 PATH=../src$(PATH_SEPARATOR)$$PATH; export PATH; \
503 t=ls-files.$$$$; \
504 (cd $(srcdir) && ls -1 *.x) | sed 's/\.x$$//' | $(ASSORT) > $$t;\
505 echo $(dist_man_MANS) | fmt -w1 | sed 's/\.1$$//' | $(ASSORT) \
506 | diff - $$t || { rm $$t; exit 1; }; \
507 rm $$t
509 .PHONY: check-programs-vs-x
510 check-programs-vs-x:
511 test "$(programs)" && : || exit 1
512 for p in `$(programs)`; do \
513 test $$p = ginstall && p=install || : ; \
514 test -f $(srcdir)/$$p.x \
515 || { echo missing $$p.x 1>&2; missing=1; }; \
516 done; \
517 test "$$missing" = 1 && exit 1 || :
518 # Tell versions [3.59,3.63) of GNU make to not export all variables.
519 # Otherwise a system limit (for SysV at least) may be exceeded.
520 .NOEXPORT: