41 lines
1.6 KiB
Makefile
41 lines
1.6 KiB
Makefile
# TODO: are we missing a ton of .txt file references from LiveData.yaml?!
|
|
DOCS_ENUMS_INPUTS = \
|
|
$(PROJECT_DIR)/integration/rusefi_config.txt \
|
|
$(PROJECT_DIR)/console/binary/output_channels.txt \
|
|
$(PROJECT_DIR)/integration/LiveData.yaml \
|
|
$(PROJECT_DIR)/console/binary/generated/live_data_ids.h \
|
|
$(PROJECT_DIR)/controllers/sensors/sensor_type.h \
|
|
$(PROJECT_DIR)/controllers/trigger/decoders/sync_edge.h \
|
|
$(PROJECT_DIR)/controllers/algo/engine_types.h \
|
|
$(PROJECT_DIR)/controllers/algo/engine_type_e.h \
|
|
$(PROJECT_DIR)/controllers/algo/rusefi_enums.h \
|
|
$(PROJECT_DIR)/controllers/algo/rusefi_hw_enums.h \
|
|
$(PROJECT_DIR)/libfirmware/can/can_common.h \
|
|
$(PROJECT_DIR)/hw_layer/drivers/can/can_category.h \
|
|
$(PROJECT_DIR)/config/boards/cypress/rusefi_hw_enums.h \
|
|
$(PROJECT_DIR)/config/boards/kinetis/rusefi_hw_enums.h
|
|
|
|
ifneq ("$(wildcard $(BOARD_DIR)/extra.txt)","")
|
|
DOCS_ENUMS_INPUTS += $(BOARD_DIR)/extra.txt
|
|
endif
|
|
|
|
ifneq ("$(wildcard $(BOARD_DIR)/board_config.txt)","")
|
|
DOCS_ENUMS_INPUTS += $(BOARD_DIR)/board_config.txt
|
|
endif
|
|
|
|
.docsenums-sentinel: $(DOCS_ENUMS_INPUTS) $(CONFIG_DEFINITION_BASE) $(ENUM_TO_STRING)
|
|
bash $(PROJECT_DIR)/gen_live_documentation.sh
|
|
@touch $@
|
|
|
|
.PHONY: docs-enums
|
|
|
|
docs-enums: .docsenums-sentinel
|
|
|
|
$(CONFIG_FILES): .docsenums-sentinel
|
|
|
|
# This is necessary because the ChibiOS makefile builds a .o file and generates
|
|
# the deps for that .o file in the same GCC call, so if the .deps aren't already
|
|
# in the correct state, things can fail to build because Make doesn't know it needs
|
|
# to build the prerequisites (in this case the generated live docs and enums) for those files ahead of time.
|
|
$(OBJS): .docsenums-sentinel
|