DotTiled/Makefile

28 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

2024-08-21 23:37:09 +02:00
test:
dotnet build src/DotTiled.sln
dotnet test src/DotTiled.sln
dotnet run --project src/DotTiled.Examples/DotTiled.Example.Console/DotTiled.Example.Console.csproj -- src/DotTiled.Examples/DotTiled.Example.Console
2024-08-21 23:37:09 +02:00
docs-serve: docs/index.md
2024-08-21 23:37:09 +02:00
docfx docs/docfx.json --serve
docs-build: docs/index.md
2024-08-21 23:37:09 +02:00
docfx docs/docfx.json
docs/index.md:
cp README.md docs/index.md
2024-08-21 23:37:09 +02:00
lint:
2024-08-22 21:12:16 +02:00
dotnet format style --verify-no-changes src/DotTiled.sln
dotnet format analyzers --verify-no-changes src/DotTiled.sln
2024-08-21 23:37:09 +02:00
pack:
dotnet pack src/DotTiled/DotTiled.csproj -c Release -o ./nupkg -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
BENCHMARK_SOURCES = src/DotTiled.Benchmark/Program.cs src/DotTiled.Benchmark/DotTiled.Benchmark.csproj
BENCHMARK_OUTPUTDIR = src/DotTiled.Benchmark/BenchmarkDotNet.Artifacts
2024-08-21 23:37:09 +02:00
.PHONY: benchmark
benchmark: $(BENCHMARK_OUTPUTDIR)/results/MyBenchmarks.MapLoading-report-github.md
2024-08-21 23:37:09 +02:00
$(BENCHMARK_OUTPUTDIR)/results/MyBenchmarks.MapLoading-report-github.md: $(BENCHMARK_SOURCES)
dotnet run --project src/DotTiled.Benchmark/DotTiled.Benchmark.csproj -c Release -- $(BENCHMARK_OUTPUTDIR)