2017-08-21 15:34:15 +00:00
|
|
|
MSBUILD = msbuild
|
|
|
|
CONFIGURATION = Debug
|
|
|
|
|
|
|
|
all: build check
|
|
|
|
|
|
|
|
build: prepare
|
2019-04-12 14:10:50 +00:00
|
|
|
$(MSBUILD) ../monolinker.sln /p:Configuration=$(CONFIGURATION)
|
2017-08-21 15:34:15 +00:00
|
|
|
|
|
|
|
clean:
|
2019-04-12 14:10:50 +00:00
|
|
|
$(MSBUILD) ../monolinker.sln /t:clean
|
2017-08-21 15:34:15 +00:00
|
|
|
|
|
|
|
prepare:
|
2019-07-26 19:53:28 +00:00
|
|
|
nuget help | head -1
|
|
|
|
nuget restore ../external/cecil/
|
2019-04-12 14:10:50 +00:00
|
|
|
nuget restore ../monolinker.sln
|
2019-07-26 19:53:28 +00:00
|
|
|
# The nunit runner used below seems to expect the old package layout.
|
|
|
|
# This could potentially be removed with an update to nunit.
|
|
|
|
nuget restore -PackagesDirectory ../packages ../test/Mono.Linker.Tests/packages.config
|
2017-08-21 15:34:15 +00:00
|
|
|
|
|
|
|
check: prepare
|
2019-07-26 19:53:28 +00:00
|
|
|
mono ../packages/NUnit.ConsoleRunner.3.6.1/tools/nunit3-console.exe --result="TestResults.xml;format=nunit2" ../test/Mono.Linker.Tests/bin/$(CONFIGURATION)/net471/Mono.Linker.Tests.dll
|