source: patches/patch-2.5.9-DESTDIR-1.patch@ 3218ec2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3218ec2 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
RevLine 
[2d152b73]1Submitted By: Jim Gifford <jim@linuxfromscratch.org>
2Date: 2006-12-02
3Initial Package Version: 2.5.9
4Origin: Jim Gifford
5Upstream Status: Submitted
6Description: Adds DESTDIR Support
7
8diff -Naur patch-2.5.9.orig/Makefile.in patch-2.5.9/Makefile.in
9--- patch-2.5.9.orig/Makefile.in 2003-05-20 09:15:48.000000000 -0700
10+++ patch-2.5.9/Makefile.in 2006-12-02 17:16:00.000000000 -0800
11@@ -43,6 +43,7 @@
12 PACKAGE_NAME = @PACKAGE_NAME@
13 PACKAGE_VERSION = @PACKAGE_VERSION@
14
15+DESTDIR = @DESTDIR@
16 prefix = @prefix@
17 exec_prefix = @exec_prefix@
18
19@@ -112,11 +113,11 @@
20 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
21
22 install:: all installdirs
23- $(INSTALL_PROGRAM) patch$(EXEEXT) $(bindir)/$(patch_name)$(EXEEXT)
24- -$(INSTALL_DATA) $(srcdir)/patch.man $(man1dir)/$(patch_name)$(man1ext)
25+ $(INSTALL_PROGRAM) patch$(EXEEXT) ${DESTDIR}$(bindir)/$(patch_name)$(EXEEXT)
26+ -$(INSTALL_DATA) $(srcdir)/patch.man ${DESTDIR}$(man1dir)/$(patch_name)$(man1ext)
27
28 installdirs::
29- $(SHELL) $(srcdir)/mkinstalldirs $(bindir) $(man1dir)
30+ $(SHELL) $(srcdir)/mkinstalldirs ${DESTDIR}$(bindir) ${DESTDIR}$(man1dir)
31
32 install-strip::
33 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
Note: See TracBrowser for help on using the repository browser.