From 876b1cc111c6b362548116b68b0fc2dda181ae6f Mon Sep 17 00:00:00 2001
From: "Marcus M. Darden" <mmdarden@umich.edu>
Date: Mon, 28 May 2018 13:40:08 -0400
Subject: [PATCH] Use $(EXECUTABLE).cpp for default main() file if project*.cpp
 is not found.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 029410b..967ab37 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ OBJECTS     = $(SOURCES:%.cpp=%.o)
 
 # TODO
 # If main() is in a file named project*.cpp, use the following line
-PROJECTFILE = $(or $(wildcard project*.cpp), nomain.cpp)
+PROJECTFILE = $(or $(wildcard project*.cpp), $(EXECUTABLE).cpp)
 # TODO
 # If main() is in another file delete line above, edit and uncomment below
 #PROJECTFILE = mymainfile.cpp
-- 
GitLab