File: 10-makefile.patch

package info (click to toggle)
edb 1.31-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 3,180 kB
  • ctags: 1,236
  • sloc: lisp: 10,484; sh: 424; makefile: 172
file content (46 lines) | stat: -rw-r--r-- 1,355 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From: Jari Aalto <jari.aalto@cante.net>
Subject: Add DESTDIR support

---
 doc/GNUmakefile.in  |    6 +++---
 lisp/GNUmakefile.in |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

--- a/lisp/GNUmakefile.in
+++ b/lisp/GNUmakefile.in
@@ -14,7 +14,7 @@
 # for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with EDB; see the file COPYING.  If not, write to the Free
+# along with EDB; see the file COPYING.	 If not, write to the Free
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
@@ -25,7 +25,7 @@
 datarootdir = @datarootdir@
 datadir = @datadir@
 infodir = @infodir@
-sitelisp = @sitelisp@
+sitelisp = $(DESTDIR)@sitelisp@
 
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
--- a/doc/GNUmakefile.in
+++ b/doc/GNUmakefile.in
@@ -77,12 +77,12 @@
 ii = install-info
 
 install: all
-	$(mkinstalldirs) $(infodir)
-	$(INSTALL_DATA) edb.info $(infodir)
+	$(mkinstalldirs) $(DESTDIR)$(infodir)
+	$(INSTALL_DATA) edb.info $(DESTDIR)$(infodir)
 	if ($(ii) --version &&						\
 	    $(ii) --version 2>&1 | sed 1q | grep -i -v debian)		\
 	   >/dev/null 2>&1 ; then					\
-	  $(ii) --info-dir="$(infodir)" "$(infodir)/edb.info" || : ;	\
+	  $(ii) --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/edb.info" || : ;	\
 	else : ; fi
 
 installcheck: