Ticket #27985: patch-destdir.diff

File patch-destdir.diff, 1.1 KB (added by jking+macports@…, 14 years ago)
  • Makefile.in

    old new  
    230230
    231231# Install after building
    232232install:: force
    233         for d in $(DIRS); do $(INSTALL) -d $$d; done
    234         for f in $(BIN); do $(INSTALL_PROG) $$f $(bindir); done
    235         for f in $(LIBSRC); do $(INSTALL_DATA) $$f $(libdir)/obc; done
    236         for f in $(LIB); do $(INSTALL_DATA) $$f $(libdir)/obc; done
    237         for f in $(LIBX); do $(INSTALL_PROG) $$f $(libdir)/obc; done
    238         for f in $(MAN); do $(INSTALL_DATA) $$f $(mandir)/man1; done
     233        for d in $(DIRS); do $(INSTALL) -d $(DESTDIR)$$d; done
     234        for f in $(BIN); do $(INSTALL_PROG) $$f $(DESTDIR)$(bindir); done
     235        for f in $(LIBSRC); do $(INSTALL_DATA) $$f $(DESTDIR)$(libdir)/obc; done
     236        for f in $(LIB); do $(INSTALL_DATA) $$f $(DESTDIR)$(libdir)/obc; done
     237        for f in $(LIBX); do $(INSTALL_PROG) $$f $(DESTDIR)$(libdir)/obc; done
     238        for f in $(MAN); do $(INSTALL_DATA) $$f $(DESTDIR)$(mandir)/man1; done
    239239
    240240ifdef ENABLE_DEBUGGER
    241241  ifdef MACOS
    242242    install:: force
    243         cp -R macport/Obdb.app $(libdir)/obc
     243        cp -R macport/Obdb.app $(DESTDIR)$(libdir)/obc
    244244  endif
    245245endif
    246246