]> git.wh0rd.org Git - elf2flt.git/commitdiff
install: add DESTDIR support
authorMike Frysinger <vapier@gentoo.org>
Fri, 18 Dec 2015 02:51:49 +0000 (21:51 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 18 Dec 2015 02:51:49 +0000 (21:51 -0500)
Makefile.in

index 81e1afc946f17e684b59f72e28301686069b27d8..5c7df771c3a6dec9d78172146c6c0b744133d24c 100644 (file)
@@ -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: