-
Notifications
You must be signed in to change notification settings - Fork 47
/
makefile
56 lines (45 loc) · 1.85 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# *****************************************************************************
# JiraSVN MAKEFILE
# *****************************************************************************
!IF EXIST(src\version.txt)
!INCLUDE src\version.txt
!ENDIF
#
!MESSAGE JiraSVN make utility $(Major).$(Minor).$(Build).$(Revision)
!MESSAGE
.SILENT:
# *****************************************************************************
# TOOLS
MSBuild=%WinDir%\Microsoft.NET\Framework\v3.5\MSBuild.exe /nologo
!IF "$(VS90COMNTOOLS)" != ""
DevEnv="$(VS90COMNTOOLS)..\IDE\devenv.exe"
!ELSE
!ERROR Visual studio not found, check env setting VS90COMNTOOLS
!ENDIF
# *****************************************************************************
all : prerequisites always
$(DevEnv) JiraSvn.sln /Rebuild Release /Out bin\Release\build.log
build : prerequisites always
$(MSBuild) JiraSvn.sln /t:Clean;Rebuild /v:q /p:Platform="Any CPU" /p:Configuration=Debug \
/fileLogger /fileLoggerParameters:LogFile=bin\Debug\build.log;Verbosity=Detailed;Encoding=UTF-8
clean : always
if exist bin\* @rd /q /s .\bin
mkdir .\bin
mkdir .\bin\Debug
mkdir .\bin\Release
$(MSBuild) JiraSvn.sln /t:Clean /v:q /p:Platform="Any CPU" /p:Configuration=Debug
# *****************************************************************************
prerequisites : \
keys\jirasvn.snk \
src\version.txt \
addcopy
keys\jirasvn.snk :
ECHO WARNING: Using shared key, you should replace $@ with your own key
copy keys\trash.snk $@
#creates new version number by running: nmake.exe -a src\version.txt
src\version.txt :
tools\StampVersion.exe /nologo /major:2 /minor:{0:yy} /build:{0:MMdd} /revision:{0:hmm} > src\version.txt
addcopy : always
tools\StampCopyright.exe /nologo tools\copyright.txt src\*.csproj
# *****************************************************************************
always: