blob: e3a9aa986c480c25ab182429f59083824e6aff4b (
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
50
51
52
53
54
55
56
57
|
$NetBSD: patch-aa,v 1.11 2012/01/11 09:43:26 asau Exp $
Install configuration files into example directory.
--- src/env/Makefile.in.orig 2011-09-01 22:55:45.000000000 +0400
+++ src/env/Makefile.in 2011-11-09 21:08:59.000000000 +0400
@@ -21,6 +21,8 @@
srcdir = @srcdir@
abs_srcdir = @abs_srcdir@
sysconfdir = @sysconfdir@
+datadir = @datadir@
+exampledir = ${datadir}/examples
DEFS = @DEFS@ -I. -I${srcdir}
CPPFLAGS = @CPPFLAGS@
LIBS = @LIBS@
@@ -97,15 +99,15 @@
if [ ! -d ${DESTDIR}${bindir} ] ; then $(MKDIR_P) ${DESTDIR}${bindir} ; fi
$(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) mpich2version ${DESTDIR}${bindir}/mpich2version
$(INSTALL_SCRIPT) mpicc ${DESTDIR}${bindir}/mpicc
- if [ ! -d ${DESTDIR}${sysconfdir} ] ; then $(MKDIR_P) ${DESTDIR}${sysconfdir} ; fi
- $(INSTALL_DATA) mpixxx_opts.conf ${DESTDIR}${sysconfdir}/mpixxx_opts.conf
- $(INSTALL_DATA) mpicc.conf ${DESTDIR}${sysconfdir}/mpicc.conf
+ if [ ! -d ${DESTDIR}${exampledir} ] ; then $(MKDIR_P) ${DESTDIR}${exampledir} ; fi
+ $(INSTALL_DATA) mpixxx_opts.conf ${DESTDIR}${exampledir}/mpixxx_opts.conf
+ $(INSTALL_DATA) mpicc.conf ${DESTDIR}${exampledir}/mpicc.conf
if [ -s mpicxx ] ; then $(INSTALL_SCRIPT) mpicxx ${DESTDIR}${bindir}/mpicxx ; fi
if [ -s mpif77 ] ; then $(INSTALL_SCRIPT) mpif77 ${DESTDIR}${bindir}/mpif77 ; fi
if [ -s mpif90 ] ; then $(INSTALL_SCRIPT) mpif90 ${DESTDIR}${bindir}/mpif90 ; fi
- if [ -s mpicxx.conf ] ; then $(INSTALL_DATA) mpicxx.conf ${DESTDIR}${sysconfdir}/mpicxx.conf ; fi
- if [ -s mpif77.conf ] ; then $(INSTALL_DATA) mpif77.conf ${DESTDIR}${sysconfdir}/mpif77.conf ; fi
- if [ -s mpif90.conf ] ; then $(INSTALL_DATA) mpif90.conf ${DESTDIR}${sysconfdir}/mpif90.conf ; fi
+ if [ -s mpicxx.conf ] ; then $(INSTALL_DATA) mpicxx.conf ${DESTDIR}${exampledir}/mpicxx.conf ; fi
+ if [ -s mpif77.conf ] ; then $(INSTALL_DATA) mpif77.conf ${DESTDIR}${exampledir}/mpif77.conf ; fi
+ if [ -s mpif90.conf ] ; then $(INSTALL_DATA) mpif90.conf ${DESTDIR}${exampledir}/mpif90.conf ; fi
${MAKE} DESTDIR=${DESTDIR} prefix=${prefix} exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} includedir=${includedir} install-postamble
install-strip:
@@ -113,14 +115,14 @@
uninstall:
-rm -f ${DESTDIR}${bindir}/mpich2version
-rm -f ${DESTDIR}${bindir}/mpicc
- -rm -f ${DESTDIR}${sysconfdir}/mpixxx_opts.conf
- -rm -f ${DESTDIR}${sysconfdir}/mpicc.conf
+ -rm -f ${DESTDIR}${exampledir}/mpixxx_opts.conf
+ -rm -f ${DESTDIR}${exampledir}/mpicc.conf
-rm -f ${DESTDIR}${bindir}/mpicxx
-rm -f ${DESTDIR}${bindir}/mpif77
-rm -f ${DESTDIR}${bindir}/mpif90
- -rm -f ${DESTDIR}${sysconfdir}/mpicxx.conf
- -rm -f ${DESTDIR}${sysconfdir}/mpif77.conf
- -rm -f ${DESTDIR}${sysconfdir}/mpif90.conf
+ -rm -f ${DESTDIR}${exampledir}/mpicxx.conf
+ -rm -f ${DESTDIR}${exampledir}/mpif77.conf
+ -rm -f ${DESTDIR}${exampledir}/mpif90.conf
${MAKE} uninstall-postamble
installcheck:
# --------------------------------------------------------------------------
|