aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makefile
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-11-23 14:19:51 +0000
committermarha <marha@users.sourceforge.net>2009-11-23 14:19:51 +0000
commitf01ad2c4e088fea9f3b6d918d910d7fd17519ade (patch)
tree39dab8036b13e87422975f683b4c0c47517c77ee /tools/mhmake/makefile
parent98899a80f02b9616a1038c4c51993435c1074046 (diff)
downloadvcxsrv-f01ad2c4e088fea9f3b6d918d910d7fd17519ade.tar.gz
vcxsrv-f01ad2c4e088fea9f3b6d918d910d7fd17519ade.tar.bz2
vcxsrv-f01ad2c4e088fea9f3b6d918d910d7fd17519ade.zip
Implemented which function.
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