File: 10-utils-Makefile.in.patch

package info (click to toggle)
mpb 1.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,040 kB
  • sloc: ansic: 13,389; javascript: 9,901; makefile: 214; lisp: 44; sh: 4
file content (30 lines) | stat: -rw-r--r-- 950 bytes parent folder | download | duplicates (7)
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
Author: Thorsten Alteholz <debian@alteholz.de>
Description: handle srcdir and top_srcdir
--- mpb-1.4.2.orig/utils/Makefile.in
+++ mpb-1.4.2/utils/Makefile.in
@@ -1,10 +1,15 @@
 # Variables substituted by the autoconf configure script:
 
 SHELL = @SHELL@
+mandir = @mandir@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
 
 CC = @CC@
 CFLAGS = @CFLAGS@
-CPPFLAGS = -I../src/util -I../src/matrices -I../src/matrixio @CPPFLAGS@
+CPPFLAGS = -I$(top_srcdir)/src/util -I$(top_srcdir)/src/matrices -I$(top_srcdir)/src/matrixio -I. @CPPFLAGS@
 DEFS = @DEFS@ -DMPB_VERSION='"'"@MPB_VERSION@"'"'
 LDFLAGS = @LDFLAGS@
 LIBS = @LIBS@
@@ -38,7 +43,7 @@
 	$(INSTALL) -d $(prefix)/bin
 	$(INSTALL) -m 0755 -s mpb-data $(prefix)/bin/`echo mpb-data|sed '$(transform)'`
 	$(INSTALL) -d $(mandir)/man1
-	$(INSTALL) -m 0644 mpb-data.1 $(mandir)/man1
+	$(INSTALL) -m 0644 $(srcdir)/mpb-data.1 $(mandir)/man1
 
 clean: 
 	rm -f mpb-data mpb-data.o core