diff --git a/Makefile b/Makefile index 7b7b4cf..b739263 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,11 @@ androidpath: @echo "export ANDROID_SDK_ROOT=$(ANDROID_SDK_ROOT)" @echo 'export PATH=$(ANDROID_HOME)/cmdline-tools/latest/bin:$(ANDROID_HOME)/platform-tools:$$PATH' + +# Assert that the go toolchain referred to by TOOLCHAINDIR is in fact the +# one that `go` in the current PATH is using. toolchain: $(TOOLCHAINDIR)/bin/go + test `go env GOROOT` = $(TOOLCHAINDIR) android/libs: mkdir -p android/libs