LINUX_RID = linux-x64 LINUX_RID_ARM = linux-arm MAC_RID = osx.10.14-x64 WINDOWS_RID = win10-x64 CONFIGURATION_ARGS = Release PUBLISH_ARGS = --self-contained true /p:PublishSingleFile=true default: @echo 'Targets:' @echo ' run' @echo ' run-win' @echo ' copy-pi' @echo ' publish' @echo ' publish-win' @echo ' publish-mac' @echo ' publish-arm' @echo ' clean' run: publish ./bin/Release/net5.0/linux-x64/publish/SingleFilePublish run-win: publish-win wine ./bin/Release/net5.0/win10-x64/publish/SingleFilePublish copy-pi: publish-arm scp ./bin/Release/net5.0/linux-arm/publish/SingleFilePublish pi@raspi4-main:/home/pi publish: dotnet publish -c $(CONFIGURATION_ARGS) -r $(LINUX_RID) $(PUBLISH_ARGS) publish-win: dotnet publish -c $(CONFIGURATION_ARGS) -r $(WINDOWS_RID) $(PUBLISH_ARGS) publish-arm: dotnet publish -c $(CONFIGURATION_ARGS) -r $(LINUX_RID_ARM) $(PUBLISH_ARGS) publish-mac: dotnet publish -c $(CONFIGURATION_ARGS) -r $(MAC_RID) $(PUBLISH_ARGS) clean: -rm -rf bin/ -rm -rf obj/