diff --git a/Makefile b/Makefile index 49d7adb..c41dab3 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,7 @@ Clean :: # Folder creation ###################################################################### +"$(APPDATA)\Updater" \ "$(KEY_DIR)" : if not exist $@ md $@ @@ -28,20 +29,21 @@ Clean :: ###################################################################### GenRSAKeypair :: \ + "$(APPDATA)\Updater" \ "$(KEY_DIR)" \ "$(KEY_DIR)\UpdaterKeyPrivate.bin" \ "$(KEY_DIR)\UpdaterKeyPublic.bin" -"$(KEY_DIR)\UpdaterKeypair.txt" : +"$(APPDATA)\Updater\Keypair.txt" : openssl.exe genrsa -out $@ 4096 -"$(KEY_DIR)\UpdaterKeyPrivate.bin" : "$(KEY_DIR)\UpdaterKeypair.txt" +"$(KEY_DIR)\UpdaterKeyPrivate.bin" : "$(APPDATA)\Updater\Keypair.txt" if exist $@ del /f /q $@ if exist "$(@:"=).tmp" del /f /q "$(@:"=).tmp" openssl.exe rsa -in $** -inform PEM -outform DER -out "$(@:"=).tmp" move /y "$(@:"=).tmp" $@ > NUL -"$(KEY_DIR)\UpdaterKeyPublic.bin" : "$(KEY_DIR)\UpdaterKeypair.txt" +"$(KEY_DIR)\UpdaterKeyPublic.bin" : "$(APPDATA)\Updater\Keypair.txt" if exist $@ del /f /q $@ if exist "$(@:"=).tmp" del /f /q "$(@:"=).tmp" openssl.exe rsa -in $** -inform PEM -outform DER -out "$(@:"=).tmp" -pubout