## Process this file with automake to produce Makefile.in ## Copyright: Sámediggi/Divvun/UiT ## Licence: GPL v3+ EXTRA_DIST = IOS_AUTOTOOLS=ios-autotools IOS_AUTOTOOLS_PATH=$(shell echo $$(pwd)/deps/$(IOS_AUTOTOOLS)) IOS_IME=tasty-imitation-keyboard ANDROID_IME=giella-ime SOFTKBDGEN=kbdgen # RELEASE=-R all: ios android .PHONY: deps deps: @echo @echo "*** Deps check! ***" @echo $(MKDIR_P) deps cd deps; \ if ! [ -d $(IOS_AUTOTOOLS) ]; then\ git clone https://github.com/bbqsrc/$(IOS_AUTOTOOLS).git ; \ fi ; \ cd $(IOS_AUTOTOOLS)/ && git pull --all && cd ../ ; \ if ! [ -d $(IOS_IME) ]; then\ git clone https://github.com/bbqsrc/$(IOS_IME).git ; \ fi ; \ cd $(IOS_IME)/ && git checkout hfst && git pull --all && cd .. ; \ if ! [ -d $(ANDROID_IME) ]; then\ git clone https://github.com/bbqsrc/$(ANDROID_IME).git ; \ fi ; \ cd $(ANDROID_IME)/ && git pull --all && cd .. ; \ if ! [ -d $(SOFTKBDGEN) ]; then\ git clone https://github.com/bbqsrc/$(SOFTKBDGEN).git ; \ fi ; \ cd $(SOFTKBDGEN)/ && git pull --all && cd .. ios: deps @echo @echo "*** iOS build! ***" @echo PYTHONPATH=deps/$(SOFTKBDGEN) \ PATH=$(IOS_AUTOTOOLS_PATH):$(PATH) \ python3.5 -m $(SOFTKBDGEN) -t ios \ -b hfst -r deps/$(IOS_IME) $(RELEASE) \ project.yaml android: deps @echo @echo "*** Android build! ***" @echo if ! [[ -z "$(ANDROID_SDK)" ]]; then \ PYTHONPATH=deps/$(SOFTKBDGEN) python3.5 -m $(SOFTKBDGEN) -t android \ -r deps/$(ANDROID_IME) -b master $(RELEASE) \ project.yaml \ -K targets.android.keyStore=$(GTPRIV)/admin/dev-accounts/dev_keys/sami_keyboard.keystore ; \ else \ echo "$$ANDROID_SDK is not defined!";\ echo "Unable to build the Android keyboard";\ echo "See the following URL for details, section Installation:";\ echo "https://github.com/bbqsrc/$(SOFTKBDGEN)/blob/master/doc/targets/android.md";\ fi clean-local: -rm -rf *.txt build deps