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-04-12 14:10:50 +00:00
|
|
|
nuget restore ../monolinker.sln
|
2017-10-19 20:04:20 +00:00
|
|
|
# A hack for project.assets.json issues
|
2019-04-12 14:10:50 +00:00
|
|
|
rm -f ../external/cecil/obj/project.assets.json
|
|
|
|
rm -f ../external/cecil/symbols/pdb/obj/project.assets.json
|
|
|
|
rm -f ../external/cecil/symbols/mdb/obj/project.assets.json
|
|
|
|
rm -f ../src/linker/obj/project.assets.json
|
2017-08-21 15:34:15 +00:00
|
|
|
|
|
|
|
check: prepare
|
2019-04-12 14:10:50 +00:00
|
|
|
mono ../packages/NUnit.ConsoleRunner.3.6.1/tools/nunit3-console.exe --result="TestResults.xml;format=nunit2" ../test/Mono.Linker.Tests/bin/$(CONFIGURATION)/Mono.Linker.Tests.dll
|