2024-11-02 21:00:44 -07:00
|
|
|
# TODO: are we missing a ton of .txt file references from LiveData.yaml?!
|
2024-03-04 18:12:46 -08:00
|
|
|
DOCS_ENUMS_INPUTS = \
|
|
|
|
$(PROJECT_DIR)/integration/rusefi_config.txt \
|
2024-11-02 21:00:44 -07:00
|
|
|
$(PROJECT_DIR)/console/binary/output_channels.txt \
|
2024-11-04 18:48:25 -08:00
|
|
|
$(PROJECT_DIR)/controllers/engine_cycle/knock_controller.txt \
|
2024-11-08 15:24:56 -08:00
|
|
|
$(PROJECT_DIR)/controllers/actuators/electronic_throttle.txt \
|
2024-03-04 18:12:46 -08:00
|
|
|
$(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 \
|
2024-10-07 11:55:49 -07:00
|
|
|
$(PROJECT_DIR)/controllers/algo/engine_type_e.h \
|
2024-03-04 18:12:46 -08:00
|
|
|
$(PROJECT_DIR)/controllers/algo/rusefi_enums.h \
|
|
|
|
$(PROJECT_DIR)/controllers/algo/rusefi_hw_enums.h \
|
2024-07-13 20:16:45 -07:00
|
|
|
$(PROJECT_DIR)/libfirmware/can/can_common.h \
|
|
|
|
$(PROJECT_DIR)/hw_layer/drivers/can/can_category.h \
|
2024-03-04 18:12:46 -08:00
|
|
|
$(PROJECT_DIR)/config/boards/cypress/rusefi_hw_enums.h \
|
2024-04-30 02:17:14 -07:00
|
|
|
$(PROJECT_DIR)/config/boards/kinetis/rusefi_hw_enums.h
|
2024-03-04 18:12:46 -08:00
|
|
|
|
2024-07-13 20:23:11 -07:00
|
|
|
ifneq ("$(wildcard $(BOARD_DIR)/extra.txt)","")
|
|
|
|
DOCS_ENUMS_INPUTS += $(BOARD_DIR)/extra.txt
|
|
|
|
endif
|
|
|
|
|
2024-07-31 17:38:28 -07:00
|
|
|
ifneq ("$(wildcard $(BOARD_DIR)/board_config.txt)","")
|
|
|
|
DOCS_ENUMS_INPUTS += $(BOARD_DIR)/board_config.txt
|
|
|
|
endif
|
|
|
|
|
2024-03-04 18:12:46 -08:00
|
|
|
.docsenums-sentinel: $(DOCS_ENUMS_INPUTS) $(CONFIG_DEFINITION_BASE) $(ENUM_TO_STRING)
|
2024-09-01 21:08:46 -07:00
|
|
|
bash $(PROJECT_DIR)/gen_live_documentation.sh
|
2024-03-04 18:12:46 -08:00
|
|
|
@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
|