Mercurial > dropbear
comparison Makefile.in @ 820:830fae485d40
Add manpage for dropbearconvert
Move dropbearkey to manual section 1
Add install target for manpages
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 03 Oct 2013 23:45:25 +0800 |
parents | 09c5eb71ec96 |
children | 4a788a3162a1 3ca7113936c1 |
comparison
equal
deleted
inserted
replaced
819:fee485ce81eb | 820:830fae485d40 |
---|---|
64 | 64 |
65 VPATH=@srcdir@ | 65 VPATH=@srcdir@ |
66 srcdir=@srcdir@ | 66 srcdir=@srcdir@ |
67 | 67 |
68 prefix=@prefix@ | 68 prefix=@prefix@ |
69 exec_prefix=${prefix} | 69 datarootdir = @datarootdir@ |
70 bindir=${exec_prefix}/bin | 70 bindir=@bindir@ |
71 sbindir=${exec_prefix}/sbin | 71 sbindir=@sbindir@ |
72 mandir=@mandir@ | |
72 | 73 |
73 CC=@CC@ | 74 CC=@CC@ |
74 AR=@AR@ | 75 AR=@AR@ |
75 RANLIB=@RANLIB@ | 76 RANLIB=@RANLIB@ |
76 STRIP=@STRIP@ | 77 STRIP=@STRIP@ |
121 install: $(addprefix inst_, $(TARGETS)) | 122 install: $(addprefix inst_, $(TARGETS)) |
122 | 123 |
123 installdropbearmulti: insdbmulti $(addprefix insmulti, $(PROGRAMS)) | 124 installdropbearmulti: insdbmulti $(addprefix insmulti, $(PROGRAMS)) |
124 | 125 |
125 insdbmulti: dropbearmulti | 126 insdbmulti: dropbearmulti |
126 $(INSTALL) -d -m 755 $(DESTDIR)$(bindir) | 127 $(INSTALL) -d $(DESTDIR)$(bindir) |
127 $(INSTALL) -m 755 dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir) | 128 $(INSTALL) dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir) |
128 -chown root $(DESTDIR)$(bindir)/dropbearmulti$(EXEEXT) | |
129 -chgrp 0 $(DESTDIR)$(bindir)/dropbearmulti$(EXEEXT) | |
130 | 129 |
131 insmultidropbear: dropbearmulti | 130 insmultidropbear: dropbearmulti |
132 $(INSTALL) -d -m 755 $(DESTDIR)$(sbindir) | 131 $(INSTALL) -d $(DESTDIR)$(sbindir) |
133 -rm -f $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) | 132 -rm -f $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) |
134 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) | 133 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) |
135 | 134 |
136 insmulti%: dropbearmulti | 135 insmulti%: dropbearmulti |
137 $(INSTALL) -d -m 755 $(DESTDIR)$(bindir) | 136 $(INSTALL) -d $(DESTDIR)$(bindir) |
138 -rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT) | 137 -rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT) |
139 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) | 138 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) |
140 | 139 |
141 # dropbear should go in sbin, so it needs a seperate rule | 140 # dropbear should go in sbin, so it needs a seperate rule |
142 inst_dropbear: dropbear | 141 inst_dropbear: dropbear |
143 $(INSTALL) -d -m 755 $(DESTDIR)$(sbindir) | 142 $(INSTALL) -d $(DESTDIR)$(sbindir) |
144 $(INSTALL) -m 755 dropbear$(EXEEXT) $(DESTDIR)$(sbindir) | 143 $(INSTALL) dropbear$(EXEEXT) $(DESTDIR)$(sbindir) |
145 -chown root $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) | 144 $(INSTALL) -d $(DESTDIR)$(mandir)/man8 |
146 -chgrp 0 $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) | 145 $(INSTALL) -m 644 dropbear.8 $(DESTDIR)$(mandir)/man8/dropbear.8 |
147 | 146 |
148 inst_%: $* | 147 inst_%: $* |
149 $(INSTALL) -d -m 755 $(DESTDIR)$(bindir) | 148 $(INSTALL) -d $(DESTDIR)$(bindir) |
150 $(INSTALL) -m 755 $*$(EXEEXT) $(DESTDIR)$(bindir) | 149 $(INSTALL) $*$(EXEEXT) $(DESTDIR)$(bindir) |
151 -chown root $(DESTDIR)$(bindir)/$*$(EXEEXT) | 150 $(INSTALL) -d $(DESTDIR)$(mandir)/man1 |
152 -chgrp 0 $(DESTDIR)$(bindir)/$*$(EXEEXT) | 151 $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1 |
153 | 152 |
154 | 153 |
155 # for some reason the rule further down doesn't like $($@objs) as a prereq. | 154 # for some reason the rule further down doesn't like $($@objs) as a prereq. |
156 dropbear: $(dropbearobjs) | 155 dropbear: $(dropbearobjs) |
157 dbclient: $(dbclientobjs) | 156 dbclient: $(dbclientobjs) |