2021-06-23 14:58:44 +00:00
|
|
|
PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
|
|
|
|
|
|
|
|
include $(PROJECT_ROOT)/assets/assets.mk
|
|
|
|
|
2021-10-12 16:41:42 +00:00
|
|
|
all: icons protobuf
|
2021-10-12 11:48:34 +00:00
|
|
|
|
2021-06-23 14:58:44 +00:00
|
|
|
$(ASSETS): $(ASSETS_SOURCES) $(ASSETS_COMPILLER)
|
2021-10-12 11:48:34 +00:00
|
|
|
@echo "\tASSETS\t\t" $@
|
2021-09-13 09:52:50 +00:00
|
|
|
@$(ASSETS_COMPILLER) icons "$(ASSETS_SOURCE_DIR)" "$(ASSETS_COMPILED_DIR)"
|
2021-06-23 14:58:44 +00:00
|
|
|
|
2021-10-12 16:41:42 +00:00
|
|
|
icons: $(ASSETS)
|
|
|
|
|
2021-10-12 11:48:34 +00:00
|
|
|
$(PROTOBUF) &: $(PROTOBUF_SOURCES) $(PROTOBUF_COMPILER)
|
|
|
|
@echo "\tPROTOBUF\t" $(PROTOBUF_FILENAMES)
|
|
|
|
@$(PROJECT_ROOT)/lib/nanopb/generator/nanopb_generator.py -q -I$(PROTOBUF_SOURCE_DIR) -D$(PROTOBUF_COMPILED_DIR) $(PROTOBUF_SOURCES)
|
|
|
|
|
2021-10-12 16:41:42 +00:00
|
|
|
protobuf: $(PROTOBUF)
|
|
|
|
|
2021-06-23 14:58:44 +00:00
|
|
|
clean:
|
|
|
|
@echo "\tCLEAN\t"
|
2021-10-12 16:41:42 +00:00
|
|
|
@$(RM) $(ASSETS_COMPILED_DIR)/*
|