Mercurial > dropbear
comparison Makefile.in @ 828:93e04b9ff676
- Fix "inst_scp" target since there isn't a manpage
- Fix "make install MULTI=1"
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 09 Oct 2013 22:24:39 +0800 |
parents | 4a788a3162a1 |
children | 4095b6d7c9fc |
comparison
equal
deleted
inserted
replaced
827:4a788a3162a1 | 828:93e04b9ff676 |
---|---|
120 strip: $(TARGETS) | 120 strip: $(TARGETS) |
121 $(STRIP) $(addsuffix $(EXEEXT), $(TARGETS)) | 121 $(STRIP) $(addsuffix $(EXEEXT), $(TARGETS)) |
122 | 122 |
123 install: $(addprefix inst_, $(TARGETS)) | 123 install: $(addprefix inst_, $(TARGETS)) |
124 | 124 |
125 installdropbearmulti: insdbmulti $(addprefix insmulti, $(PROGRAMS)) | |
126 | |
127 insdbmulti: dropbearmulti | |
128 $(INSTALL) -d $(DESTDIR)$(bindir) | |
129 $(INSTALL) dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir) | |
130 | |
131 insmultidropbear: dropbearmulti | 125 insmultidropbear: dropbearmulti |
132 $(INSTALL) -d $(DESTDIR)$(sbindir) | 126 $(INSTALL) -d $(DESTDIR)$(sbindir) |
133 -rm -f $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) | 127 -rm -f $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) |
134 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) | 128 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(sbindir)/dropbear$(EXEEXT) |
129 $(INSTALL) -d $(DESTDIR)$(mandir)/man8 | |
130 $(INSTALL) -m 644 dropbear.8 $(DESTDIR)$(mandir)/man8/dropbear.8 | |
135 | 131 |
136 insmulti%: dropbearmulti | 132 insmulti%: dropbearmulti |
137 $(INSTALL) -d $(DESTDIR)$(bindir) | 133 $(INSTALL) -d $(DESTDIR)$(bindir) |
138 -rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT) | 134 -rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT) |
139 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) | 135 -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) |
136 $(INSTALL) -d $(DESTDIR)$(mandir)/man1 | |
137 $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1 | |
140 | 138 |
141 # dropbear should go in sbin, so it needs a seperate rule | 139 # dropbear should go in sbin, so it needs a seperate rule |
142 inst_dropbear: dropbear | 140 inst_dropbear: dropbear |
143 $(INSTALL) -d $(DESTDIR)$(sbindir) | 141 $(INSTALL) -d $(DESTDIR)$(sbindir) |
144 $(INSTALL) dropbear$(EXEEXT) $(DESTDIR)$(sbindir) | 142 $(INSTALL) dropbear$(EXEEXT) $(DESTDIR)$(sbindir) |
145 $(INSTALL) -d $(DESTDIR)$(mandir)/man8 | 143 $(INSTALL) -d $(DESTDIR)$(mandir)/man8 |
146 $(INSTALL) -m 644 dropbear.8 $(DESTDIR)$(mandir)/man8/dropbear.8 | 144 $(INSTALL) -m 644 dropbear.8 $(DESTDIR)$(mandir)/man8/dropbear.8 |
147 | 145 |
148 inst_%: $* | 146 inst_%: $* |
149 $(INSTALL) -d $(DESTDIR)$(bindir) | 147 $(INSTALL) -d $(DESTDIR)$(bindir) |
150 $(INSTALL) $*$(EXEEXT) $(DESTDIR)$(bindir) | 148 $(INSTALL) $*$(EXEEXT) $(DESTDIR)$(bindir) |
151 $(INSTALL) -d $(DESTDIR)$(mandir)/man1 | 149 $(INSTALL) -d $(DESTDIR)$(mandir)/man1 |
152 $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1 | 150 if test -e $*.1; then $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi |
151 | |
152 inst_dropbearmulti: $(addprefix insmulti, $(PROGRAMS)) | |
153 | 153 |
154 | 154 |
155 # for some reason the rule further down doesn't like $($@objs) as a prereq. | 155 # for some reason the rule further down doesn't like $($@objs) as a prereq. |
156 dropbear: $(dropbearobjs) | 156 dropbear: $(dropbearobjs) |
157 dbclient: $(dbclientobjs) | 157 dbclient: $(dbclientobjs) |