Skip to content

Commit 4f1a368

Browse files
committed
Change error to exit
1 parent 24a86b9 commit 4f1a368

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

mpi-proxy-split/mpi-wrappers/Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ ${LIBNAME}.a: ${LIBWRAPPER_OBJS}
5252
ar cr $@ $^
5353

5454
mpi_unimplemented_wrappers.cpp: generate-mpi-unimplemented-wrappers.py \
55-
mpi_unimplemented_wrappers_mpich.txt \
55+
mpi_unimplemented_wrappers_mpich.txt \
5656
mpi_unimplemented_wrappers_openmpi.txt \
5757
mpi_unimplemented_wrappers_exampi.txt
58-
59-
if mpiexec -h | grep -q 'mpich'; then \
60-
python3 generate-mpi-unimplemented-wrappers.py mpi_unimplemented_wrappers_mpich.txt > $@; \
61-
elif mpiexec -h | grep -q 'open-mpi'; then \
62-
python3 generate-mpi-unimplemented-wrappers.py mpi_unimplemented_wrappers_openmpi.txt > $@; \
63-
elif mpiexec -h | grep -q 'ExaMPI'; then \
64-
python3 generate-mpi-unimplemented-wrappers.py mpi_unimplemented_wrappers_exampi.txt > $@; \
65-
else \
66-
$(error Could not identify the MPICH flavor); \
67-
fi
58+
if mpiexec -h | grep -q 'mpich'; then \
59+
python3 generate-mpi-unimplemented-wrappers.py mpi_unimplemented_wrappers_mpich.txt > $@; \
60+
elif mpiexec -h | grep -q 'open-mpi'; then \
61+
python3 generate-mpi-unimplemented-wrappers.py mpi_unimplemented_wrappers_openmpi.txt > $@; \
62+
elif mpiexec -h | grep -q 'ExaMPI'; then \
63+
python3 generate-mpi-unimplemented-wrappers.py mpi_unimplemented_wrappers_exampi.txt > $@; \
64+
else \
65+
echo 'Could not identify the MPICH flavor'; \
66+
exit 1; \
67+
fi
6868

6969
.c.o:
7070
${MPICC} ${CFLAGS} -c -o $@ $<

0 commit comments

Comments
 (0)