2021-06-23 14:58:44 +00:00
|
|
|
PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
|
|
|
|
|
|
|
|
include $(PROJECT_ROOT)/assets/assets.mk
|
|
|
|
|
2022-01-02 21:39:56 +00:00
|
|
|
.PHONY: all
|
|
|
|
all: icons protobuf dolphin
|
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
|
|
|
|
2022-01-02 21:39:56 +00:00
|
|
|
.PHONY: icons
|
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)
|
2022-01-02 21:39:56 +00:00
|
|
|
@$(PROTOBUF_COMPILER) -q -I$(PROTOBUF_SOURCE_DIR) -D$(PROTOBUF_COMPILED_DIR) $(PROTOBUF_SOURCES)
|
2021-10-12 11:48:34 +00:00
|
|
|
|
2022-01-02 21:39:56 +00:00
|
|
|
.PHONY: protobuf
|
2021-10-12 16:41:42 +00:00
|
|
|
protobuf: $(PROTOBUF)
|
|
|
|
|
2022-01-02 21:39:56 +00:00
|
|
|
$(PROTOBUF_FILE_ANIMATIONS): $(PROTOBUF_SOURCES_FILE_ANIMATIONS) $(PROTOBUF_COMPILER)
|
|
|
|
@echo "\tFILE ANIMATIONS\t" $(PROTOBUF_FILE_ANIMATIONS_FILENAMES)
|
|
|
|
@$(PROTOBUF_COMPILER) -q -I$(PROTOBUF_FILE_ANIMATIONS_SOURCE_DIR) -D$(PROTOBUF_FILE_ANIMATIONS_COMPILED_DIR) $(PROTOBUF_FILE_ANIMATIONS_SOURCES)
|
|
|
|
|
|
|
|
$(DOLPHIN_OUTPUT_DIR): $(DOLPHIN_SOURCE_DIR)
|
|
|
|
@echo "\tDOLPHIN"
|
|
|
|
@$(ASSETS_COMPILLER) dolphin "$(DOLPHIN_SOURCE_DIR)" "$(DOLPHIN_OUTPUT_DIR)"
|
|
|
|
|
|
|
|
.PHONY: dolphin
|
|
|
|
dolphin: $(DOLPHIN_OUTPUT_DIR)
|
|
|
|
|
2021-06-23 14:58:44 +00:00
|
|
|
clean:
|
|
|
|
@echo "\tCLEAN\t"
|
2021-10-12 16:41:42 +00:00
|
|
|
@$(RM) $(ASSETS_COMPILED_DIR)/*
|
2022-01-02 21:39:56 +00:00
|
|
|
@$(RM) -rf $(DOLPHIN_OUTPUT_DIR)
|