Ticket #22969: patch-Makefile.in

File patch-Makefile.in, 1.4 KB (added by tim@…, 14 years ago)

patch for Makefile.in to better support DESTDIR

Line 
1--- Makefile.in.orig    2009-12-10 17:47:01.000000000 +0200
2+++ Makefile.in 2009-12-10 17:51:49.000000000 +0200
3@@ -32,24 +32,24 @@
4 # The following definition can be set to non-null for special systems
5 # like AFS with replication.  It allows the pathnames used for installation
6 # to be different than those used for actually reference files at
7-# run-time.  INSTALL_ROOT is prepended to $prefix and $exec_prefix
8+# run-time.  DESTDIR is prepended to $prefix and $exec_prefix
9 # when installing files.
10-INSTALL_ROOT =
11+DESTDIR =
12 
13 # Directory in which to install the .a or .so binary for the XPA library:
14-LIB_INSTALL_DIR =      $(INSTALL_ROOT)$(exec_prefix)/lib
15+LIB_INSTALL_DIR =      $(DESTDIR)$(exec_prefix)/lib
16 
17 # Directory in which to install the program wish:
18-BIN_INSTALL_DIR =      $(INSTALL_ROOT)$(exec_prefix)/bin
19+BIN_INSTALL_DIR =      $(DESTDIR)$(exec_prefix)/bin
20 
21 # Directory in which to install the include file xpa.h:
22-INCLUDE_INSTALL_DIR =  $(INSTALL_ROOT)$(prefix)/include
23+INCLUDE_INSTALL_DIR =  $(DESTDIR)$(prefix)/include
24 
25 # Top-level directory for manual entries:
26-MAN_INSTALL_DIR =      $(INSTALL_ROOT)$(prefix)/man
27+MAN_INSTALL_DIR =      $(DESTDIR)$(prefix)/share/man
28 
29 # Top-level directory for share entries:
30-MAN_SHARE_DIR =                $(INSTALL_ROOT)$(prefix)/share/xpa
31+MAN_SHARE_DIR =                $(DESTDIR)$(prefix)/share/xpa
32 
33 # Platform-specific X compiler flags (include file specifications)
34 X_CFLAGS =             @X_CFLAGS@