From 81925bad7d7c8adbead4b2fcd59ccb30fd359996 Mon Sep 17 00:00:00 2001 From: edoapra Date: Tue, 28 Nov 2023 13:34:03 -0800 Subject: [PATCH] avoid need of USE_MPI for make clean https://github.com/nwchemgit/nwchem/issues/903 --- src/config/makefile.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config/makefile.h b/src/config/makefile.h index 4bdd71006a..1a5277d971 100644 --- a/src/config/makefile.h +++ b/src/config/makefile.h @@ -3585,8 +3585,10 @@ ifdef USE_MPI CORE_LIBS += $(NWLIBMPI) endif else + ifneq ($(MAKECMDGOALS),$(findstring $(MAKECMDGOALS), clean realclean distclean dependencies include_stamp deps_stamp directories $(BINDIR)/depend.x)) errornousempi: $(info ) + $(info MAKECMDGOALS $(MAKECMDGOALS)) $(info please set the env. variable USE_MPI) $(info and provide a working MPI installation) $(info ) @@ -3596,6 +3598,7 @@ else else CORE_LIBS += endif + endif endif