steamguard-cli/makefile

28 lines
1.3 KiB
Makefile
Raw Normal View History

$(eval SHELL:=/bin/bash)
all: Program.cs
mkdir -p build/ ;\
nuget restore SteamAuth/SteamAuth/SteamAuth.sln ;\
NEWTONSOFT_JSON_PATH=$$(find -name Newtonsoft.Json.dll | grep \/net45\/ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1)) ;\
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/
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
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