Permalink
Browse files

Add "make" script for easy builds on Windows machines.

  • Loading branch information...
1 parent f0c3d7c commit 55ea07bf7bd3d664bc09e9420e4ef768e56b55dc @jdhardy committed Apr 29, 2012
Showing with 73 additions and 0 deletions.
  1. +73 −0 make.cmd
View
@@ -0,0 +1,73 @@
+@echo off
+setlocal
+set PATH=%PATH%;%WINDIR%\Microsoft.NET\Framework\v4.0.30319;%WINDIR%\Microsoft.NET\Framework\v3.5
+
+:getopts
+if "%1"=="" (goto :default) else (goto :%1)
+goto :exit
+
+:default
+goto :debug
+
+:debug
+set _target=Build
+set _flavour=Debug
+goto :main
+
+:clean-debug
+set _target=Clean
+set _flavour=Debug
+goto :main
+
+:stage-debug
+set _target=Stage
+set _flavour=Debug
+goto :main
+
+:release
+set _target=Build
+set _flavour=Release
+goto :main
+
+:clean-release
+set _target=Clean
+set _flavour=Release
+goto :main
+
+:stage-release
+set _target=Stage
+set _flavour=Release
+goto :main
+
+:package-release
+set _target=Package
+set _flavour=Release
+goto :main
+
+:clean
+echo No target 'clean'. Try 'clean-debug' or 'clean-release'.
+goto :exit
+
+:stage
+echo No target 'stage'. Try 'stage-debug' or 'stage-release'.
+goto :exit
+
+:package
+echo No target 'package'. Try 'package-release'.
+goto :exit
+
+:test
+echo Not Ready
+goto :exit
+
+:distclean
+msbuild /t:DistClean /p:BaseConfiguration=Release /verbosity:minimal /nologo
+msbuild /t:DistClean /p:BaseConfiguration=Debug /verbosity:minimal /nologo
+goto :main
+
+:main
+msbuild /t:%_target% /p:BaseConfiguration=%_flavour% /verbosity:minimal /nologo
+goto :exit
+
+:exit
+endlocal

0 comments on commit 55ea07b

Please sign in to comment.