Makefile 630 B

123456789101112131415161718192021
  1. PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
  2. include $(PROJECT_ROOT)/assets/assets.mk
  3. all: icons protobuf
  4. $(ASSETS): $(ASSETS_SOURCES) $(ASSETS_COMPILLER)
  5. @echo "\tASSETS\t\t" $@
  6. @$(ASSETS_COMPILLER) icons "$(ASSETS_SOURCE_DIR)" "$(ASSETS_COMPILED_DIR)"
  7. icons: $(ASSETS)
  8. $(PROTOBUF) &: $(PROTOBUF_SOURCES) $(PROTOBUF_COMPILER)
  9. @echo "\tPROTOBUF\t" $(PROTOBUF_FILENAMES)
  10. @$(PROJECT_ROOT)/lib/nanopb/generator/nanopb_generator.py -q -I$(PROTOBUF_SOURCE_DIR) -D$(PROTOBUF_COMPILED_DIR) $(PROTOBUF_SOURCES)
  11. protobuf: $(PROTOBUF)
  12. clean:
  13. @echo "\tCLEAN\t"
  14. @$(RM) $(ASSETS_COMPILED_DIR)/*