2016-08-23 16:38:53 +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
|
2016-08-21 23:02:17 +02:00
|
|
|
mcs -target:library -out:build/SteamAuth.dll -r:SteamAuth/SteamAuth/packages/Newtonsoft.Json.7.0.1/lib/net45/Newtonsoft.Json.dll 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 SteamAuth/SteamAuth/packages/Newtonsoft.Json.7.0.1/lib/net45/Newtonsoft.Json.dll build/
|
2016-08-24 01:08:16 +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
|
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
|