From: Mike Frysinger Date: Fri, 18 Dec 2015 02:51:49 +0000 (-0500) Subject: install: add DESTDIR support X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=34b58862560e50a96bcbcda59084323336ddc48b;p=elf2flt.git install: add DESTDIR support --- diff --git a/Makefile.in b/Makefile.in index 81e1afc..5c7df77 100644 --- a/Makefile.in +++ b/Makefile.in @@ -94,20 +94,18 @@ distclean: clean -rm -f Makefile config.log config.status config.cache ld-elf2flt install: - $(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 $(PROG_LD_ELF2FLT) $(bindir)/$(TARGET)-ld$(EXEEXT) - $(INSTALL) -m 755 $(PROG_LD_ELF2FLT) $(target_bindir)/ld$(EXEEXT) - $(INSTALL) -m 644 $(SRC_LDFILE) $(target_libdir)/$(LDFILE) + $(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(target_bindir) $(DESTDIR)$(target_libdir) + $(INSTALL) -m 755 $(PROG_FLTHDR) $(DESTDIR)$(bindir)/$(TARGET)-$(PROG_FLTHDR) + $(INSTALL) -m 755 $(PROG_FLTHDR) $(DESTDIR)$(target_bindir)/$(PROG_FLTHDR) + $(INSTALL) -m 755 $(PROG_ELF2FLT) $(DESTDIR)$(bindir)/$(TARGET)-$(PROG_ELF2FLT) + $(INSTALL) -m 755 $(PROG_ELF2FLT) $(DESTDIR)$(target_bindir)/$(PROG_ELF2FLT) + [ -f $(DESTDIR)$(bindir)/$(TARGET)-ld.real$(EXEEXT) ] || \ + mv $(DESTDIR)$(bindir)/$(TARGET)-ld$(EXEEXT) $(DESTDIR)$(bindir)/$(TARGET)-ld.real$(EXEEXT) + [ -f $(DESTDIR)$(target_bindir)/ld.real$(EXEEXT) ] || \ + mv $(DESTDIR)$(target_bindir)/ld$(EXEEXT) $(DESTDIR)$(target_bindir)/ld.real$(EXEEXT) + $(INSTALL) -m 755 $(PROG_LD_ELF2FLT) $(DESTDIR)$(bindir)/$(TARGET)-ld$(EXEEXT) + $(INSTALL) -m 755 $(PROG_LD_ELF2FLT) $(DESTDIR)$(target_bindir)/ld$(EXEEXT) + $(INSTALL) -m 644 $(SRC_LDFILE) $(DESTDIR)$(target_libdir)/$(LDFILE) sinclude .deps .deps: