summarylogtreecommitdiffstats
path: root/patch-Makefile.in
blob: c08a59e87c80b98ef8199fb0f517b3ef1131369d (plain)
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
47
48
49
--- PolyORB-master-old/Makefile.in
+++ PolyORB-master/Makefile.in
@@ -626,16 +626,16 @@
 target=@target@
 
 ifeq (${target}, ${host})
-  target_prefix=${prefix}
-  host_exe_dir=${prefix}/bin
+  target_prefix=${DESTDIR}${prefix}
+  host_exe_dir=${DESTDIR}${prefix}/bin
   host_cmdprefix=
-  target_exe_dir=${prefix}/bin
+  target_exe_dir=${DESTDIR}${prefix}/bin
 
 else
-  target_prefix=${prefix}/${target}
-  host_exe_dir=${prefix}/bin
-  host_cmdprefix=${target}-
-  target_exe_dir=${target_prefix}/bin
+  target_prefix=${DESTDIR}${prefix}/${target}
+  host_exe_dir=${DESTDIR}${prefix}/bin
+  host_cmdprefix=${DESTDIR}${target}-
+  target_exe_dir=${DESTDIR}${target_prefix}/bin
 endif
 projects_subdir=lib/gnat/polyorb
 
@@ -646,7 +646,7 @@
 	@echo "Install prefix: ${prefix}"
 	@echo "          Host: ${host}"
 	@echo "        Target: ${target}"
-	${PINSTALL} -d ${prefix}/bin ${target_prefix}/bin
+	${PINSTALL} -d ${DESTDIR}${prefix}/bin ${target_prefix}/bin
 	${RM} -fr "${target_prefix}/${projects_subdir}"
 	${PINSTALL} -d ${target_prefix}/${projects_subdir}
 	${PINSTALL} -d ${target_prefix}/lib/polyorb
@@ -689,10 +689,10 @@
 	# check for existence of sphinx-build.
 	if [ -r doc/_build ]; \
 	then \
-	  (cd doc && ${MAKE} install prefix="${prefix}" SPHINXBUILD=true); \
+	  (cd doc && ${MAKE} install prefix="${DESTDIR}${prefix}" SPHINXBUILD=true); \
 	elif [ -r $(top_srcdir)/doc/_build ]; \
 	then \
-	  (cd doc && ${MAKE} install prefix="${prefix}" doc_build_dir="$(top_srcdir)/doc/" SPHINXBUILD=true); \
+	  (cd doc && ${MAKE} install prefix="${DESTDIR}${prefix}" doc_build_dir="$(top_srcdir)/doc/" SPHINXBUILD=true); \
 	fi
 
 # polyorb-dsa_p-partitions.ali is a special case above.