From f01ad2c4e088fea9f3b6d918d910d7fd17519ade Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 23 Nov 2009 14:19:51 +0000 Subject: Implemented which function. --- tools/mhmake/makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tools/mhmake/makefile') 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 -- cgit v1.2.3