1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
3 basename.1 cat.1 chgrp.1 chmod.1 chown.1 chroot.1 cksum.1 comm.1 \
4 cp.1 csplit.1 cut.1 date.1 dd.1 df.1 dir.1 dircolors.1 dirname.1 du.1 \
5 echo.1 env.1 expand.1 expr.1 factor.1 false.1 fmt.1 fold.1 groups.1 \
6 head.1 hostid.1 hostname.1 id.1 install.1 join.1 link.1 ln.1 logname.1 \
7 ls.1 md5sum.1 mkdir.1 mkfifo.1 mknod.1 mv.1 nice.1 nl.1 nohup.1 od.1 \
8 paste.1 pathchk.1 pinky.1 pr.1 printenv.1 printf.1 ptx.1 pwd.1 rm.1 \
9 rmdir.1 seq.1 sha1sum.1 shred.1 sleep.1 sort.1 split.1 stat.1 stty.1 \
10 su.1 sum.1 sync.1 tac.1 tail.1 tee.1 test.1 touch.1 tr.1 true.1 tsort.1 \
11 tty.1 uname.1 unexpand.1 uniq.1 unlink.1 uptime.1 users.1 vdir.1 wc.1 \
14 man_aux = $(dist_man_MANS:.1=.x)
16 EXTRA_DIST = $(man_aux)
17 MAINTAINERCLEANFILES = $(man_MANS)
19 # Depend on configure.ac to get version number changes.
20 common_dep = $(top_srcdir)/configure.ac
22 basename.1: $(common_dep) $(srcdir)/basename.x ../src/basename.c
23 cat.1: $(common_dep) $(srcdir)/cat.x ../src/cat.c
24 chgrp.1: $(common_dep) $(srcdir)/chgrp.x ../src/chgrp.c
25 chmod.1: $(common_dep) $(srcdir)/chmod.x ../src/chmod.c
26 chown.1: $(common_dep) $(srcdir)/chown.x ../src/chown.c
27 chroot.1: $(common_dep) $(srcdir)/chroot.x ../src/chroot.c
28 cksum.1: $(common_dep) $(srcdir)/cksum.x ../src/cksum.c
29 comm.1: $(common_dep) $(srcdir)/comm.x ../src/comm.c
30 cp.1: $(common_dep) $(srcdir)/cp.x ../src/cp.c
31 csplit.1: $(common_dep) $(srcdir)/csplit.x ../src/csplit.c
32 cut.1: $(common_dep) $(srcdir)/cut.x ../src/cut.c
33 date.1: $(common_dep) $(srcdir)/date.x ../src/date.c
34 dd.1: $(common_dep) $(srcdir)/dd.x ../src/dd.c
35 df.1: $(common_dep) $(srcdir)/df.x ../src/df.c
37 # Note that dir depends on ls.c, since that's where it's --help text is.
38 dir.1: $(common_dep) $(srcdir)/dir.x ../src/ls.c
40 dircolors.1: $(common_dep) $(srcdir)/dircolors.x ../src/dircolors.c
41 dirname.1: $(common_dep) $(srcdir)/dirname.x ../src/dirname.c
42 du.1: $(common_dep) $(srcdir)/du.x ../src/du.c
43 echo.1: $(common_dep) $(srcdir)/echo.x ../src/echo.c
44 env.1: $(common_dep) $(srcdir)/env.x ../src/env.c
45 expand.1: $(common_dep) $(srcdir)/expand.x ../src/expand.c
46 expr.1: $(common_dep) $(srcdir)/expr.x ../src/expr.c
47 factor.1: $(common_dep) $(srcdir)/factor.x ../src/factor.c
48 false.1: $(common_dep) $(srcdir)/false.x ../src/false.c
49 fmt.1: $(common_dep) $(srcdir)/fmt.x ../src/fmt.c
50 fold.1: $(common_dep) $(srcdir)/fold.x ../src/fold.c
51 groups.1: $(common_dep) $(srcdir)/groups.x ../src/groups.sh
52 head.1: $(common_dep) $(srcdir)/head.x ../src/head.c
53 hostid.1: $(common_dep) $(srcdir)/hostid.x ../src/hostid.c
54 hostname.1: $(common_dep) $(srcdir)/hostname.x ../src/hostname.c
55 id.1: $(common_dep) $(srcdir)/id.x ../src/id.c
56 install.1: $(common_dep) $(srcdir)/install.x ../src/install.c
57 join.1: $(common_dep) $(srcdir)/join.x ../src/join.c
58 link.1: $(common_dep) $(srcdir)/link.x ../src/link.c
59 ln.1: $(common_dep) $(srcdir)/ln.x ../src/ln.c
60 logname.1: $(common_dep) $(srcdir)/logname.x ../src/logname.c
61 ls.1: $(common_dep) $(srcdir)/ls.x ../src/ls.c
62 md5sum.1: $(common_dep) $(srcdir)/md5sum.x ../src/md5sum.c
63 mkdir.1: $(common_dep) $(srcdir)/mkdir.x ../src/mkdir.c
64 mkfifo.1: $(common_dep) $(srcdir)/mkfifo.x ../src/mkfifo.c
65 mknod.1: $(common_dep) $(srcdir)/mknod.x ../src/mknod.c
66 mv.1: $(common_dep) $(srcdir)/mv.x ../src/mv.c
67 nice.1: $(common_dep) $(srcdir)/nice.x ../src/nice.c
68 nl.1: $(common_dep) $(srcdir)/nl.x ../src/nl.c
69 nohup.1: $(common_dep) $(srcdir)/nohup.x ../src/nohup.sh
70 od.1: $(common_dep) $(srcdir)/od.x ../src/od.c
71 paste.1: $(common_dep) $(srcdir)/paste.x ../src/paste.c
72 pathchk.1: $(common_dep) $(srcdir)/pathchk.x ../src/pathchk.c
73 pinky.1: $(common_dep) $(srcdir)/pinky.x ../src/pinky.c
74 pr.1: $(common_dep) $(srcdir)/pr.x ../src/pr.c
75 printenv.1: $(common_dep) $(srcdir)/printenv.x ../src/printenv.c
76 printf.1: $(common_dep) $(srcdir)/printf.x ../src/printf.c
77 ptx.1: $(common_dep) $(srcdir)/ptx.x ../src/ptx.c
78 pwd.1: $(common_dep) $(srcdir)/pwd.x ../src/pwd.c
79 rm.1: $(common_dep) $(srcdir)/rm.x ../src/rm.c
80 rmdir.1: $(common_dep) $(srcdir)/rmdir.x ../src/rmdir.c
81 seq.1: $(common_dep) $(srcdir)/seq.x ../src/seq.c
82 sha1sum.1: $(common_dep) $(srcdir)/sha1sum.x ../src/md5sum.c
83 shred.1: $(common_dep) $(srcdir)/shred.x ../src/shred.c
84 sleep.1: $(common_dep) $(srcdir)/sleep.x ../src/sleep.c
85 sort.1: $(common_dep) $(srcdir)/sort.x ../src/sort.c
86 split.1: $(common_dep) $(srcdir)/split.x ../src/split.c
87 stat.1: $(common_dep) $(srcdir)/stat.x ../src/stat.c
88 stty.1: $(common_dep) $(srcdir)/stty.x ../src/stty.c
89 su.1: $(common_dep) $(srcdir)/su.x ../src/su.c
90 sum.1: $(common_dep) $(srcdir)/sum.x ../src/sum.c
91 sync.1: $(common_dep) $(srcdir)/sync.x ../src/sync.c
92 tac.1: $(common_dep) $(srcdir)/tac.x ../src/tac.c
93 tail.1: $(common_dep) $(srcdir)/tail.x ../src/tail.c
94 tee.1: $(common_dep) $(srcdir)/tee.x ../src/tee.c
95 test.1: $(common_dep) $(srcdir)/test.x ../src/test.c
96 touch.1: $(common_dep) $(srcdir)/touch.x ../src/touch.c
97 tr.1: $(common_dep) $(srcdir)/tr.x ../src/tr.c
98 true.1: $(common_dep) $(srcdir)/true.x ../src/true.c
99 tsort.1: $(common_dep) $(srcdir)/tsort.x ../src/tsort.c
100 tty.1: $(common_dep) $(srcdir)/tty.x ../src/tty.c
101 uname.1: $(common_dep) $(srcdir)/uname.x ../src/uname.c
102 unexpand.1: $(common_dep) $(srcdir)/unexpand.x ../src/unexpand.c
103 uniq.1: $(common_dep) $(srcdir)/uniq.x ../src/uniq.c
104 unlink.1: $(common_dep) $(srcdir)/unlink.x ../src/unlink.c
105 uptime.1: $(common_dep) $(srcdir)/uptime.x ../src/uptime.c
106 users.1: $(common_dep) $(srcdir)/users.x ../src/users.c
107 vdir.1: $(common_dep) $(srcdir)/vdir.x ../src/ls.c
108 wc.1: $(common_dep) $(srcdir)/wc.x ../src/wc.c
109 who.1: $(common_dep) $(srcdir)/who.x ../src/who.c
110 whoami.1: $(common_dep) $(srcdir)/whoami.x ../src/whoami.c
111 yes.1: $(common_dep) $(srcdir)/yes.x ../src/yes.c
115 # Ensure that help2man runs the ../src/ginstall binary as
116 # `install' when creating install.1.
118 mapped_name = `echo $*|sed 's/install/ginstall/'`
120 # Note the use of $t/$*, rather than just `$*' as in other packages.
121 # That is necessary to avoid failures for programs that are also shell built-in
122 # functions like echo, false, printf, pwd.
124 @echo "Updating man page $@"; \
126 ln -s ../../src/$(mapped_name) $t/$*; \
128 --include=$(srcdir)/$*.x \
132 check-local: check-x-vs-1
134 # Ensure that for each .x file in this directory, there is a
135 # corresponding .1 file in the definition of $(dist_man_MANS) above.
139 (cd $(srcdir) && ls -1 *.x) | sed 's/\.x$$//' | sort > $$t; \
140 echo $(dist_man_MANS) | fmt -w1 | sed 's/\.1$$//' | sort -u \
141 | diff - $$t || { rm $$t; exit 1; }; \