- $(INSTALL) -s -m 755 flthdr $(INSTALLDIR)/bin/$(TARGET)-flthdr
- $(INSTALL) -s -m 755 flthdr $(INSTALLDIR)/$(TARGET)/bin/flthdr
- $(INSTALL) -s -m 755 elf2flt $(INSTALLDIR)/bin/$(TARGET)-elf2flt
- $(INSTALL) -s -m 755 elf2flt $(INSTALLDIR)/$(TARGET)/bin/elf2flt
- [ -f $(INSTALLDIR)/bin/$(TARGET)-ld.real ] || \
- mv $(INSTALLDIR)/bin/$(TARGET)-ld $(INSTALLDIR)/bin/$(TARGET)-ld.real
- [ -f $(INSTALLDIR)/$(TARGET)/bin/ld.real ] || \
- mv $(INSTALLDIR)/$(TARGET)/bin/ld $(INSTALLDIR)/$(TARGET)/bin/ld.real
- $(INSTALL) -m 755 ld-elf2flt $(INSTALLDIR)/bin/$(TARGET)-ld
- $(INSTALL) -m 755 ld-elf2flt $(INSTALLDIR)/$(TARGET)/bin/ld
- $(INSTALL) -m 644 elf2flt.ld $(INSTALLDIR)/$(TARGET)/lib
+ $(INSTALL) -d $(bindir)
+ $(INSTALL) -d $(target_bindir)
+ $(INSTALL) -d $(target_libdir)
+ $(INSTALL) -m 755 $(PROG_FLTHDR) $(bindir)/$(TARGET)-$(PROG_FLTHDR)
+ $(INSTALL) -m 755 $(PROG_FLTHDR) $(target_bindir)/$(PROG_FLTHDR)
+ $(INSTALL) -m 755 $(PROG_ELF2FLT) $(bindir)/$(TARGET)-$(PROG_ELF2FLT)
+ $(INSTALL) -m 755 $(PROG_ELF2FLT) $(target_bindir)/$(PROG_ELF2FLT)
+ [ -f $(bindir)/$(TARGET)-ld.real$(EXEEXT) ] || \
+ mv $(bindir)/$(TARGET)-ld$(EXEEXT) $(bindir)/$(TARGET)-ld.real$(EXEEXT)
+ [ -f $(target_bindir)/ld.real$(EXEEXT) ] || \
+ mv $(target_bindir)/ld$(EXEEXT) $(target_bindir)/ld.real$(EXEEXT)
+ $(INSTALL) -m 755 ld-elf2flt $(bindir)/$(TARGET)-ld
+ $(INSTALL) -m 755 ld-elf2flt $(target_bindir)/ld
+ $(INSTALL) -m 644 $(SRC_LDFILE) $(target_libdir)/$(LDFILE)
+