1
1

Merge pull request #1414 from jsquyres/pr/egrep-for-examples-makefile

examples: update ompi_info bindings checks
Этот коммит содержится в:
Gilles Gouaillardet 2016-03-01 11:55:49 +09:00
родитель 8aff67c399 677a31bc9f
Коммит 67e45028df

Просмотреть файл

@ -84,19 +84,19 @@ all: hello_c ring_c connectivity_c
# MPI examples
mpi:
@ if ompi_info --parsable | grep bindings:cxx:yes >/dev/null; then \
@ if ompi_info --parsable | grep -q bindings:cxx:yes >/dev/null; then \
$(MAKE) hello_cxx ring_cxx; \
fi
@ if ompi_info --parsable | grep bindings:mpif.h:yes >/dev/null; then \
@ if ompi_info --parsable | grep -q bindings:mpif.h:yes >/dev/null; then \
$(MAKE) hello_mpifh ring_mpifh; \
fi
@ if ompi_info --parsable | grep bindings:use_mpi:\"yes >/dev/null; then \
@ if ompi_info --parsable | egrep -q bindings:use_mpi:\"\?yes >/dev/null; then \
$(MAKE) hello_usempi ring_usempi; \
fi
@ if ompi_info --parsable | grep bindings:use_mpi_f08:yes >/dev/null; then \
@ if ompi_info --parsable | grep -q bindings:use_mpi_f08:yes >/dev/null; then \
$(MAKE) hello_usempif08 ring_usempif08; \
fi
@ if ompi_info --parsable | grep bindings:java:yes >/dev/null; then \
@ if ompi_info --parsable | grep -q bindings:java:yes >/dev/null; then \
$(MAKE) Hello.class Ring.class; \
fi