2021-05-11 17:54:37 +02:00
|
|
|
$(eval SHELL:=/bin/bash)
|
2020-10-12 22:21:22 +02:00
|
|
|
|
|
|
|
all: Program.cs
|
2016-08-22 01:24:23 +02:00
|
|
|
mkdir -p build/
|
2016-08-21 18:49:53 +02:00
|
|
|
nuget restore SteamAuth/SteamAuth/SteamAuth.sln
|
2021-05-11 17:54:37 +02:00
|
|
|
$(eval NEWTONSOFT_JSON_PATH=$(shell find -name Newtonsoft.Json.dll | grep \/net45\/ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1))
|
2020-10-12 22:21:22 +02:00
|
|
|
mcs -target:library -out:build/SteamAuth.dll -r:$(NEWTONSOFT_JSON_PATH) SteamAuth/SteamAuth/APIEndpoints.cs SteamAuth/SteamAuth/AuthenticatorLinker.cs SteamAuth/SteamAuth/Confirmation.cs SteamAuth/SteamAuth/SessionData.cs SteamAuth/SteamAuth/SteamGuardAccount.cs SteamAuth/SteamAuth/SteamWeb.cs SteamAuth/SteamAuth/TimeAligner.cs SteamAuth/SteamAuth/UserLogin.cs SteamAuth/SteamAuth/Util.cs SteamAuth/SteamAuth/Properties/AssemblyInfo.cs
|
|
|
|
cp $(NEWTONSOFT_JSON_PATH) build/
|
2017-05-23 00:19:04 +02:00
|
|
|
mcs -out:build/steamguard -r:build/SteamAuth.dll -r:build/Newtonsoft.Json.dll -r:/usr/lib/mono/4.5/System.Security.dll Program.cs Manifest.cs AssemblyInfo.cs Utils.cs
|
2016-08-21 23:05:32 +02:00
|
|
|
|
|
|
|
run:
|
2016-08-22 01:24:23 +02:00
|
|
|
build/steamguard -v
|
2016-08-21 23:18:07 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -r build/
|
2016-08-24 01:55:06 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
cp build/steamguard /usr/local/bin/
|
|
|
|
cp build/Newtonsoft.Json.dll /usr/local/bin/
|
|
|
|
cp build/SteamAuth.dll /usr/local/bin/
|
2016-08-24 17:59:28 +02:00
|
|
|
cp bash-tab-completion /etc/bash_completion.d/steamguard
|
2016-08-24 01:55:06 +02:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f /usr/local/bin/steamguard
|
|
|
|
rm -f /usr/local/bin/Newtonsoft.Json.dll
|
2016-08-24 17:59:28 +02:00
|
|
|
rm -f /usr/local/bin/SteamAuth.dll
|
|
|
|
rm -f /etc/bash_completion.d/steamguard
|