diff options
author | Damien Miller <djm@mindrot.org> | 2001-04-16 10:41:46 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-04-16 10:41:46 +1000 |
commit | 897741eeaa0ebb5e2ce10a6b0ada8f3e55d22777 (patch) | |
tree | 5cab7cc53a9910aee7e932c74ee56555a30621ba /Makefile.in | |
parent | 206941fdd88031e76da1e2aa0b5dd3b8d1d5d38b (diff) |
- (djm) Convert mandoc manpages to man automatically. Patch from Mark D.
Roth <roth+openssh@feep.net>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 57 |
1 files changed, 35 insertions, 22 deletions
diff --git a/Makefile.in b/Makefile.in index 2df721671..f0b2f6937 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: Makefile.in,v 1.167 2001/04/14 23:21:51 mouring Exp $ | 1 | # $Id: Makefile.in,v 1.168 2001/04/16 00:41:46 djm Exp $ |
2 | 2 | ||
3 | prefix=@prefix@ | 3 | prefix=@prefix@ |
4 | exec_prefix=@exec_prefix@ | 4 | exec_prefix=@exec_prefix@ |
@@ -6,7 +6,6 @@ bindir=@bindir@ | |||
6 | sbindir=@sbindir@ | 6 | sbindir=@sbindir@ |
7 | libexecdir=@libexecdir@ | 7 | libexecdir=@libexecdir@ |
8 | mandir=@mandir@ | 8 | mandir=@mandir@ |
9 | mansubdir=@mansubdir@ | ||
10 | sysconfdir=@sysconfdir@ | 9 | sysconfdir=@sysconfdir@ |
11 | piddir=@piddir@ | 10 | piddir=@piddir@ |
12 | srcdir=@srcdir@ | 11 | srcdir=@srcdir@ |
@@ -50,9 +49,8 @@ SSHOBJS= ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.o readconf.o clie | |||
50 | 49 | ||
51 | SSHDOBJS= sshd.o auth.o auth1.o auth2.o auth-chall.o auth2-chall.o auth-rhosts.o auth-options.o auth-krb4.o auth-pam.o auth2-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o auth-sia.o sshpty.o sshlogin.o loginrec.o servconf.o serverloop.o md5crypt.o session.o groupaccess.o | 50 | SSHDOBJS= sshd.o auth.o auth1.o auth2.o auth-chall.o auth2-chall.o auth-rhosts.o auth-options.o auth-krb4.o auth-pam.o auth2-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o auth-sia.o sshpty.o sshlogin.o loginrec.o servconf.o serverloop.o md5crypt.o session.o groupaccess.o |
52 | 51 | ||
53 | TROFFMAN = scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.1 | 52 | MANPAGES = scp.1.out ssh-add.1.out ssh-agent.1.out ssh-keygen.1.out ssh-keyscan.1.out ssh.1.out sshd.8.out sftp-server.8.out sftp.1.out |
54 | CATMAN = scp.0 ssh-add.0 ssh-agent.0 ssh-keygen.0 ssh-keyscan.0 ssh.0 sshd.0 sftp-server.0 sftp.0 | 53 | MANTYPE = @MANTYPE@ |
55 | MANPAGES = @MANTYPE@ | ||
56 | 54 | ||
57 | CONFIGFILES=sshd_config ssh_config primes | 55 | CONFIGFILES=sshd_config ssh_config primes |
58 | 56 | ||
@@ -73,9 +71,7 @@ PATHSUBS = \ | |||
73 | 71 | ||
74 | FIXPATHSCMD = $(PERL) $(srcdir)/fixpaths $(PATHSUBS) | 72 | FIXPATHSCMD = $(PERL) $(srcdir)/fixpaths $(PATHSUBS) |
75 | 73 | ||
76 | all: $(CONFIGFILES) $(TARGETS) | 74 | all: $(CONFIGFILES) $(MANPAGES) $(TARGETS) |
77 | |||
78 | manpages: $(MANPAGES) | ||
79 | 75 | ||
80 | $(LIBSSH_OBJS): config.h | 76 | $(LIBSSH_OBJS): config.h |
81 | $(SSHOBJS): config.h | 77 | $(SSHOBJS): config.h |
@@ -123,8 +119,20 @@ sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-int.o sftp-common | |||
123 | logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o | 119 | logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o |
124 | $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS) | 120 | $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS) |
125 | 121 | ||
126 | $(MANPAGES) $(CONFIGFILES):: | 122 | $(MANPAGES): %.out: % |
127 | $(FIXPATHSCMD) $(srcdir)/$@ | 123 | if test "$(MANTYPE)" = "cat"; then \ |
124 | manpage=`echo $< | sed 's/\.[1-9]$$/\.0/'`; \ | ||
125 | else \ | ||
126 | manpage=$<; \ | ||
127 | fi; \ | ||
128 | if test "$(MANTYPE)" = "man"; then \ | ||
129 | $(FIXPATHSCMD) $(srcdir)/$${manpage} | $(PERL) $(srcdir)/mdoc2man.pl > $@; \ | ||
130 | else \ | ||
131 | $(FIXPATHSCMD) $(srcdir)/$${manpage} > $@; \ | ||
132 | fi | ||
133 | |||
134 | $(CONFIGFILES):: | ||
135 | $(FIXPATHSCMD) $(srcdir)/$@ > $@.out | ||
128 | 136 | ||
129 | clean: | 137 | clean: |
130 | (cd openbsd-compat; $(MAKE) clean) | 138 | (cd openbsd-compat; $(MAKE) clean) |
@@ -151,14 +159,12 @@ catman-do: | |||
151 | distprep: catman-do | 159 | distprep: catman-do |
152 | autoreconf | 160 | autoreconf |
153 | 161 | ||
154 | install: manpages $(TARGETS) install-files host-key | 162 | install: $(TARGETS) install-files host-key |
155 | 163 | ||
156 | install-files: | 164 | install-files: |
157 | $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) | 165 | $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) |
158 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) | 166 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) |
159 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) | 167 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) |
160 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1 | ||
161 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8 | ||
162 | $(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir) | 168 | $(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir) |
163 | $(INSTALL) -m $(SSH_MODE) -s ssh $(DESTDIR)$(bindir)/ssh | 169 | $(INSTALL) -m $(SSH_MODE) -s ssh $(DESTDIR)$(bindir)/ssh |
164 | $(INSTALL) -m 0755 -s scp $(DESTDIR)$(bindir)/scp | 170 | $(INSTALL) -m 0755 -s scp $(DESTDIR)$(bindir)/scp |
@@ -169,15 +175,22 @@ install-files: | |||
169 | $(INSTALL) -m 0755 -s sshd $(DESTDIR)$(sbindir)/sshd | 175 | $(INSTALL) -m 0755 -s sshd $(DESTDIR)$(sbindir)/sshd |
170 | @NO_SFTP@$(INSTALL) -m 0755 -s sftp $(DESTDIR)$(bindir)/sftp | 176 | @NO_SFTP@$(INSTALL) -m 0755 -s sftp $(DESTDIR)$(bindir)/sftp |
171 | @NO_SFTP@$(INSTALL) -m 0755 -s sftp-server $(DESTDIR)$(SFTP_SERVER) | 177 | @NO_SFTP@$(INSTALL) -m 0755 -s sftp-server $(DESTDIR)$(SFTP_SERVER) |
172 | $(INSTALL) -m 644 ssh.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 | 178 | if test "$(MANTYPE)" = "doc"; then \ |
173 | $(INSTALL) -m 644 scp.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 | 179 | mansubdir="man"; \ |
174 | $(INSTALL) -m 644 ssh-add.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 | 180 | else \ |
175 | $(INSTALL) -m 644 ssh-agent.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 | 181 | mansubdir="$(MANTYPE)"; \ |
176 | $(INSTALL) -m 644 ssh-keygen.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 | 182 | fi; \ |
177 | $(INSTALL) -m 644 ssh-keyscan.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 | 183 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${mansubdir}1; \ |
178 | $(INSTALL) -m 644 sshd.[08].out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 | 184 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${mansubdir}8; \ |
179 | @NO_SFTP@$(INSTALL) -m 644 sftp.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 | 185 | $(INSTALL) -m 644 ssh.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/ssh.1; \ |
180 | @NO_SFTP@$(INSTALL) -m 644 sftp-server.[08].out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 | 186 | $(INSTALL) -m 644 scp.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/scp.1; \ |
187 | $(INSTALL) -m 644 ssh-add.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/ssh-add.1; \ | ||
188 | $(INSTALL) -m 644 ssh-agent.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/ssh-agent.1; \ | ||
189 | $(INSTALL) -m 644 ssh-keygen.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/ssh-keygen.1; \ | ||
190 | $(INSTALL) -m 644 ssh-keyscan.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/ssh-keyscan.1; \ | ||
191 | $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$${mansubdir}8/sshd.8; \ | ||
192 | @NO_SFTP@$(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/sftp.1; \ | ||
193 | @NO_SFTP@$(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$${mansubdir}8/sftp-server.8; | ||
181 | -rm -f $(DESTDIR)$(bindir)/slogin | 194 | -rm -f $(DESTDIR)$(bindir)/slogin |
182 | ln -s ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin | 195 | ln -s ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin |
183 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 | 196 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 |