Mercurial > dropbear
comparison Makefile.in @ 1718:72bb7fb1fced
Fix "make install" for manpages in out-of-tree builds
author | Gabor Z. Papp <gzp@papp.hu> |
---|---|
date | Mon, 15 Jun 2020 23:17:27 +0800 |
parents | 41bf8f216644 |
children | d529a52b2f7c d1b279aa5ed1 |
comparison
equal
deleted
inserted
replaced
1717:295377ecbf49 | 1718:72bb7fb1fced |
---|---|
173 insmulti%: dropbearmulti$(EXEEXT) | 173 insmulti%: dropbearmulti$(EXEEXT) |
174 $(INSTALL) -d $(DESTDIR)$(bindir) | 174 $(INSTALL) -d $(DESTDIR)$(bindir) |
175 -rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT) | 175 -rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT) |
176 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) | 176 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) |
177 $(INSTALL) -d $(DESTDIR)$(mandir)/man1 | 177 $(INSTALL) -d $(DESTDIR)$(mandir)/man1 |
178 if test -e $*.1; then $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi | 178 if test -e $(srcdir)/$*.1; then $(INSTALL) -m 644 $(srcdir)/$*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi |
179 | 179 |
180 # dropbear should go in sbin, so it needs a separate rule | 180 # dropbear should go in sbin, so it needs a separate rule |
181 inst_dropbear: dropbear | 181 inst_dropbear: dropbear |
182 $(INSTALL) -d $(DESTDIR)$(sbindir) | 182 $(INSTALL) -d $(DESTDIR)$(sbindir) |
183 $(INSTALL) dropbear$(EXEEXT) $(DESTDIR)$(sbindir) | 183 $(INSTALL) dropbear$(EXEEXT) $(DESTDIR)$(sbindir) |
186 | 186 |
187 inst_%: % | 187 inst_%: % |
188 $(INSTALL) -d $(DESTDIR)$(bindir) | 188 $(INSTALL) -d $(DESTDIR)$(bindir) |
189 $(INSTALL) $*$(EXEEXT) $(DESTDIR)$(bindir) | 189 $(INSTALL) $*$(EXEEXT) $(DESTDIR)$(bindir) |
190 $(INSTALL) -d $(DESTDIR)$(mandir)/man1 | 190 $(INSTALL) -d $(DESTDIR)$(mandir)/man1 |
191 if test -e $*.1; then $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi | 191 if test -e $(srcdir)/$*.1; then $(INSTALL) -m 644 $(srcdir)/$*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi |
192 | 192 |
193 inst_dropbearmulti: $(addprefix insmulti, $(PROGRAMS)) | 193 inst_dropbearmulti: $(addprefix insmulti, $(PROGRAMS)) |
194 | 194 |
195 # for some reason the rule further down doesn't like $($@objs) as a prereq. | 195 # for some reason the rule further down doesn't like $($@objs) as a prereq. |
196 dropbear: $(dropbearobjs) | 196 dropbear: $(dropbearobjs) |