2021-06-23 17:58:44 +03:00
|
|
|
PROJECT_ROOT = $(abspath $(dir $(abspath $(firstword $(MAKEFILE_LIST))))..)
|
|
|
|
|
|
|
|
include $(PROJECT_ROOT)/assets/assets.mk
|
|
|
|
|
2022-01-03 00:39:56 +03:00
|
|
|
.PHONY: all
|
|
|
|
all: icons protobuf dolphin
|
2021-10-12 14:48:34 +03:00
|
|
|
|
2021-06-23 17:58:44 +03:00
|
|
|
$(ASSETS): $(ASSETS_SOURCES) $(ASSETS_COMPILLER)
|
2021-10-12 14:48:34 +03:00
|
|
|
@echo "\tASSETS\t\t" $@
|
2021-09-13 12:52:50 +03:00
|
|
|
@$(ASSETS_COMPILLER) icons "$(ASSETS_SOURCE_DIR)" "$(ASSETS_COMPILED_DIR)"
|
2021-06-23 17:58:44 +03:00
|
|
|
|
2022-01-03 00:39:56 +03:00
|
|
|
.PHONY: icons
|
2021-10-12 19:41:42 +03:00
|
|
|
icons: $(ASSETS)
|
|
|
|
|
2021-10-12 14:48:34 +03:00
|
|
|
$(PROTOBUF) &: $(PROTOBUF_SOURCES) $(PROTOBUF_COMPILER)
|
|
|
|
@echo "\tPROTOBUF\t" $(PROTOBUF_FILENAMES)
|
2022-01-03 00:39:56 +03:00
|
|
|
@$(PROTOBUF_COMPILER) -q -I$(PROTOBUF_SOURCE_DIR) -D$(PROTOBUF_COMPILED_DIR) $(PROTOBUF_SOURCES)
|
2021-10-12 14:48:34 +03:00
|
|
|
|
2022-01-03 00:39:56 +03:00
|
|
|
.PHONY: protobuf
|
2021-10-12 19:41:42 +03:00
|
|
|
protobuf: $(PROTOBUF)
|
|
|
|
|
2022-01-03 00:39:56 +03: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 17:58:44 +03:00
|
|
|
clean:
|
|
|
|
@echo "\tCLEAN\t"
|
2021-10-12 19:41:42 +03:00
|
|
|
@$(RM) $(ASSETS_COMPILED_DIR)/*
|
2022-01-03 00:39:56 +03:00
|
|
|
@$(RM) -rf $(DOLPHIN_OUTPUT_DIR)
|