make-quoter

Log | Files | Refs | README

Makefile (751B)


      1 .ONESHELL:
      2 .PHONY: build deps test deploy setup
      3 
      4 VERSION = 0.1.0
      5 SRC ?= $(wildcard src/*.scala)
      6 DEST ?= .bin
      7 MAIN ?= Main
      8 PACKAGE_NAME=com.thing.quoter
      9 PROGRAM := Quoter
     10 ANDROID_SDK_VERSION = 29.0.3
     11 ANDROID_COMPILE_SDK = 29
     12 ANDROID_MIN_SDK = 24
     13 ANDROID_KEYSTORE:=debug.keystore
     14 
     15 DEPS += com/android/org.osgi/osgi.core\:3.2.0
     16 
     17 .DEFAULT_GOAL := all
     18 
     19 include config.mk
     20 APP_SRC_DIR:=$(subst .,/,$(PACKAGE_NAME))
     21 # out/$(APP_SRC_DIR)/R.java
     22 
     23 out/$(PACKAGE_PATH)/%: out/$(PACKAGE_PATH)/%.aar
     24 	unzip $< -d $@
     25 
     26 $(error $(wildcard java/$(PACKAGE_PATH)/view/*.class))
     27 all: $(wildcard out/$(PACKAGE_PATH)/view/*.class) #$(CLASS_DIR)/$(PACKAGE_PATH)/R.class  out/app-debug.apk
     28 
     29 # TODO Throw error if the folder $(LIB_DIR) is missing
     30 clean:
     31 	$(RMDIR) "$(GEN_DIR)"