This repository has been archived on 2022-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
LyokoCMD/Makefile

29 lines
786 B
Makefile

NUGET_SOURCE:=Brainshit
run:
cd src/LyokoCMD.CommandLine && dotnet run
debug:
cd src/LyokoCMD.CommandLine && dotnet run -- --debug
all:
dotnet build
clean:
rm -rf {test/LyokoCMD.Sim.Tests,src/LyokoCMD.{Sim,CommandLine,Xana}}/bin
find . -type f -name '*.nupkg' -not -path '*/.git/*' | xargs -r rm
tests:
dotnet test test/LyokoCMD.Sim.Tests/LyokoCMD.Sim.Tests.csproj
restore:
dotnet restore
push-latest: VERSION_SUFFIX=latest
push-latest: push-all
push-all: clean
dotnet pack --version-suffix "$(VERSION_SUFFIX)"
if [ -z "$(NUGET_API_KEY)" ]; then echo "The NUGET_API_KEY variable is required to push to a NuGet server."; exit 1; fi
find . -type f -name '*.nupkg' -not -path '*/.git/*' | xargs -n1 -I '{}' dotnet nuget push {} -k "$(NUGET_API_KEY)" -s "$(NUGET_SOURCE)"