source: patches/patch-2.5.9-DESTDIR-1.patch@ 056ee7fe

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 056ee7fe was 2d152b73, checked in by Jim Gifford <clfs@…>, 18 years ago

Added: patch-2.5.9-DESTDIR-1.patch

  • Property mode set to 100644
File size: 1.1 KB
  • Makefile.in

    Submitted By: Jim Gifford <jim@linuxfromscratch.org>
    Date: 2006-12-02
    Initial Package Version: 2.5.9
    Origin: Jim Gifford
    Upstream Status: Submitted
    Description: Adds DESTDIR Support
    
    diff -Naur patch-2.5.9.orig/Makefile.in patch-2.5.9/Makefile.in
    old new  
    4343PACKAGE_NAME = @PACKAGE_NAME@
    4444PACKAGE_VERSION = @PACKAGE_VERSION@
    4545
     46DESTDIR = @DESTDIR@
    4647prefix = @prefix@
    4748exec_prefix = @exec_prefix@
    4849
     
    112113        $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
    113114
    114115install:: all installdirs
    115         $(INSTALL_PROGRAM) patch$(EXEEXT) $(bindir)/$(patch_name)$(EXEEXT)
    116         -$(INSTALL_DATA) $(srcdir)/patch.man $(man1dir)/$(patch_name)$(man1ext)
     116        $(INSTALL_PROGRAM) patch$(EXEEXT) ${DESTDIR}$(bindir)/$(patch_name)$(EXEEXT)
     117        -$(INSTALL_DATA) $(srcdir)/patch.man ${DESTDIR}$(man1dir)/$(patch_name)$(man1ext)
    117118
    118119installdirs::
    119         $(SHELL) $(srcdir)/mkinstalldirs $(bindir) $(man1dir)
     120        $(SHELL) $(srcdir)/mkinstalldirs ${DESTDIR}$(bindir) ${DESTDIR}$(man1dir)
    120121
    121122install-strip::
    122123        $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
Note: See TracBrowser for help on using the repository browser.