diff --git a/src/make.inc b/src/make.inc
index 748256b1bfe068427234604415fb3434b889d359..a619faabbfdd3ffe4b0f34ff7851fd185addd74b 100644
--- a/src/make.inc
+++ b/src/make.inc
@@ -74,7 +74,7 @@ override LAPACK_LDFLAGS=-L$(MKLROOT)/lib -Wl,--no-as-needed -lmkl_intel_ilp64 -l
 else
 override LAPACK_LDFLAGS=-L$(MKLROOT)/lib -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -lgomp -lpthread -lm -ldl
 endif
-endif LAPACK_LDFLAGS
+endif #LAPACK_LDFLAGS
 # the next else refers to USE_MKL
 else #this is for when USE_MKL is _not_ defined
 ifndef LAPACK_INCLUDE
@@ -88,7 +88,7 @@ override LAPACK_LDFLAGS=-llapacke64
 else
 override LAPACK_LDFLAGS=-llapacke
 endif
-endif LAPACK_LDFLAGS
+endif #LAPACK_LDFLAGS
 # the next endif is for USE_MKL
 endif
 #the next endif is for USE_LAPACK