|
10 | 10 | # Copyright (c) 2004-2005 The Regents of the University of California.
|
11 | 11 | # All rights reserved.
|
12 | 12 | # Copyright (c) 2006-2007 Sun Microsystems, Inc. All rights reserved.
|
13 |
| -# Copyright (c) 2011-2014 Cisco Systems, Inc. All rights reserved. |
| 13 | +# Copyright (c) 2011-2016 Cisco Systems, Inc. All rights reserved. |
14 | 14 | # Copyright (c) 2012 Los Alamos National Security, Inc. All rights reserved.
|
15 | 15 | # Copyright (c) 2013 Mellanox Technologies, Inc. All rights reserved.
|
16 | 16 | # $COPYRIGHT$
|
@@ -84,19 +84,19 @@ all: hello_c ring_c connectivity_c
|
84 | 84 | # MPI examples
|
85 | 85 |
|
86 | 86 | mpi:
|
87 |
| - @ if ompi_info --parsable | grep bindings:cxx:yes >/dev/null; then \ |
| 87 | + @ if ompi_info --parsable | grep -q bindings:cxx:yes >/dev/null; then \ |
88 | 88 | $(MAKE) hello_cxx ring_cxx; \
|
89 | 89 | fi
|
90 |
| - @ if ompi_info --parsable | grep bindings:mpif.h:yes >/dev/null; then \ |
| 90 | + @ if ompi_info --parsable | grep -q bindings:mpif.h:yes >/dev/null; then \ |
91 | 91 | $(MAKE) hello_mpifh ring_mpifh; \
|
92 | 92 | fi
|
93 |
| - @ if ompi_info --parsable | grep bindings:use_mpi:yes >/dev/null; then \ |
| 93 | + @ if ompi_info --parsable | egrep -q bindings:use_mpi:\"\?yes >/dev/null; then \ |
94 | 94 | $(MAKE) hello_usempi ring_usempi; \
|
95 | 95 | fi
|
96 |
| - @ if ompi_info --parsable | grep bindings:use_mpi_f08:yes >/dev/null; then \ |
| 96 | + @ if ompi_info --parsable | grep -q bindings:use_mpi_f08:yes >/dev/null; then \ |
97 | 97 | $(MAKE) hello_usempif08 ring_usempif08; \
|
98 | 98 | fi
|
99 |
| - @ if ompi_info --parsable | grep bindings:java:yes >/dev/null; then \ |
| 99 | + @ if ompi_info --parsable | grep -q bindings:java:yes >/dev/null; then \ |
100 | 100 | $(MAKE) Hello.class Ring.class; \
|
101 | 101 | fi
|
102 | 102 |
|
|
0 commit comments