aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mhmake/makefile')
-rw-r--r--tools/mhmake/makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/mhmake/makefile b/tools/mhmake/makefile
index dbdceb017..504f9af76 100644
--- a/tools/mhmake/makefile
+++ b/tools/mhmake/makefile
@@ -6,7 +6,16 @@ all: debug\mhmake_dbg.exe release\mhmake.exe
DEPS=$(wildcard src\*)
-VCSTUDIO:=vcexpress # choose devenv.com if you have the commercial edition
+ifneq $(which devenv.com),
+VCSTUDIO=devenv.com
+endif
+ifneq $(which vcexpress.exe),
+VCSTUDIO=vcexpress
+endif
+
+ifndef VCSTUDIO
+$(error Environment not set correctly for building Visual Studio projects)
+endif
debug\mhmake_dbg.exe: $(DEPS)
$(VCSTUDIO) $(MHMAKESLNFILE) /build Debug