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