Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 43 lines (32 sloc) 1.227 kb
7603f4b @jgoz Add Makefile for Mono builds.
jgoz authored
1 PROJ = src/build.proj
add2f44 @jgoz Add prerelease support to package script.
jgoz authored
2 FLAGS = /property:OperatingPlatform=Unix /property:NetFramework=Mono
7603f4b @jgoz Add Makefile for Mono builds.
jgoz authored
3 XBUILD = xbuild /tv:4.0
4
5 VERSION =
6 BUILD =
7 REVISION =
8 MATURITY =
9 VERSTR = $(VERSION).$(BUILD).$(REVISION)
10
11 VERSIONINFO = src/Shared/VersionInfo.cs
12
13 PACK = tar -czf clrzmq-mono-$(VERSTR).tar.gz
14 PACKFILES = build/clrzmq.* README.md AUTHORS LICENSE
15
59576bf @jgoz Fix Mono build.
jgoz authored
16 .PHONY=all release package clean
7603f4b @jgoz Add Makefile for Mono builds.
jgoz authored
17
59576bf @jgoz Fix Mono build.
jgoz authored
18 all:
41cd1ef @jgoz Remove MSpec from build process.
jgoz authored
19 $(XBUILD) $(FLAGS) $(PROJ)
7603f4b @jgoz Add Makefile for Mono builds.
jgoz authored
20
59576bf @jgoz Fix Mono build.
jgoz authored
21 release:
7603f4b @jgoz Add Makefile for Mono builds.
jgoz authored
22 ifdef VERSION
23 mv $(VERSIONINFO) $(VERSIONINFO).bak
24 echo using System.Reflection; > $(VERSIONINFO)
25 echo. >> $(VERSIONINFO)
26 echo [assembly: AssemblyVersion("$(VERSION).0.0")] >> $(VERSIONINFO)
27 echo [assembly: AssemblyFileVersion("$(VERSTR)")] >> $(VERSIONINFO)
28 echo [assembly: AssemblyInformationalVersion("$(VERSTR) $(MATURITY)")] >> $(VERSIONINFO)
29 echo [assembly: AssemblyConfiguration("$(MATURITY)")] >> $(VERSIONINFO)
30
31 $(XBUILD) /target:Package $(FLAGS) /Property:Configuration=Release /Property:SignAssembly=true $(PROJ)
32
33 mv $(VERSIONINFO).bak $(VERSIONINFO)
34 else
35 $(error Invalid VERSION==$(VERSION) - specify package version. E.g., `make VERSION=3.0 BUILD=12345 REVISION=1 MATURITY=Beta')
36 endif
37
38 package: release
39 $(PACK) $(PACKFILES)
40
59576bf @jgoz Fix Mono build.
jgoz authored
41 clean:
42 $(XBUILD) /target:Clean $(FLAGS) $(PROJ)
Something went wrong with that request. Please try again.