2020-10-12 22:21:22 +02:00
|
|
|
$(eval SHELL:=/bin/bash)
|
2021-05-10 19:12:25 +02:00
|
|
|
|
|
|
|
NEWTONSOFT_JSON_PATH="./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net45/Newtonsoft.Json.dll"
|
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
|
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
|