.POSIX: .PHONY: init clean distclean build-openssl build publish-local-snapshot \ publish-local-release publish-remote-snapshot public-remote-release check GRADLE = ./gradlew clean: $(GRADLE) clean distclean: $(GRADLE) distclean \ -PsqlcipherRoot="$(SQLCIPHER_ROOT)" build-openssl: $(GRADLE) buildOpenSSL check: $(GRADLE) check format: $(GRADLE) editorconfigFormat build-debug: $(GRADLE) android-database-sqlcipher:bundleDebugAar \ -PdebugBuild=true \ -PsqlcipherRoot="$(SQLCIPHER_ROOT)" \ -PopensslRoot="$(OPENSSL_ROOT)" \ -PopensslAndroidNativeRoot="$(OPENSSL_ANDROID_LIB_ROOT)" \ -PsqlcipherCFlags="$(SQLCIPHER_CFLAGS)" \ -PsqlcipherAndroidClientVersion="$(SQLCIPHER_ANDROID_VERSION)" build-release: $(GRADLE) android-database-sqlcipher:bundleReleaseAar \ -PdebugBuild=false \ -PsqlcipherRoot="$(SQLCIPHER_ROOT)" \ -PopensslRoot="$(OPENSSL_ROOT)" \ -PopensslAndroidNativeRoot="$(OPENSSL_ANDROID_LIB_ROOT)" \ -PsqlcipherCFlags="$(SQLCIPHER_CFLAGS)" \ -PsqlcipherAndroidClientVersion="$(SQLCIPHER_ANDROID_VERSION)" publish-local-snapshot: @ $(collect-signing-info) \ $(GRADLE) \ -PpublishSnapshot=true \ -PpublishLocal=true \ -PsigningKeyId="$$gpgKeyId" \ -PsigningKeyRingFile="$$gpgKeyRingFile" \ -PsigningKeyPassword="$$gpgPassword" \ uploadArchives publish-local-release: @ $(collect-signing-info) \ $(GRADLE) \ -PpublishSnapshot=false \ -PpublishLocal=true \ -PsigningKeyId="$$gpgKeyId" \ -PsigningKeyRingFile="$$gpgKeyRingFile" \ -PsigningKeyPassword="$$gpgPassword" \ uploadArchives publish-remote-snapshot: @ $(collect-signing-info) \ $(collect-nexus-info) \ $(GRADLE) \ -PpublishSnapshot=true \ -PpublishLocal=false \ -PsigningKeyId="$$gpgKeyId" \ -PsigningKeyRingFile="$$gpgKeyRingFile" \ -PsigningKeyPassword="$$gpgPassword" \ -PnexusUsername="$$nexusUsername" \ -PnexusPassword="$$nexusPassword" \ uploadArchives publish-remote-release: @ $(collect-signing-info) \ $(collect-nexus-info) \ $(GRADLE) \ -PpublishSnapshot=false \ -PpublishLocal=false \ -PdebugBuild=false \ -PsigningKeyId="$$gpgKeyId" \ -PsigningKeyRingFile="$$gpgKeyRingFile" \ -PsigningKeyPassword="$$gpgPassword" \ -PnexusUsername="$$nexusUsername" \ -PnexusPassword="$$nexusPassword" \ -PsqlcipherRoot="$(SQLCIPHER_ROOT)" \ -PopensslRoot="$(OPENSSL_ROOT)" \ -PopensslAndroidLibRoot="$(OPENSSL_ANDROID_LIB_ROOT)" \ -PsqlcipherCFlags="$(SQLCIPHER_CFLAGS)" \ -PsqlcipherAndroidClientVersion="$(SQLCIPHER_ANDROID_VERSION)" \ android-database-sqlcipher:publish collect-nexus-info := \ read -p "Enter Nexus username:" nexusUsername; \ stty -echo; read -p "Enter Nexus password:" nexusPassword; stty echo; collect-signing-info := \ read -p "Enter GPG signing key id:" gpgKeyId; \ read -p "Enter full path to GPG keyring file \ (possibly ${HOME}/.gnupg/secring.gpg)" gpgKeyRingFile; \ stty -echo; read -p "Enter GPG password:" gpgPassword; stty echo;