-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
fome_generated.mk
23 lines (20 loc) · 964 Bytes
/
fome_generated.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
GENERATED := \
$(GENERATED_DIR)/engine_configuration_generated_structures.h \
# $(GENERATED_DIR)/live_data_fragments.h \
# $(GENERATED_DIR)/live_data_ids.h \
# $(GENERATED_DIR)/log_fields_generated.h \
# $(GENERATED_DIR)/output_lookup_generated.cpp \
# $(GENERATED_DIR)/rusefi_generated.h \
# $(GENERATED_DIR)/value_lookup_generated.cpp
# TODO: how do we list multiple dependencies without the build happening multiple times?
$(GENERATED) : $(PROJECT_DIR)/integration/rusefi_config.txt
@echo Generating config files...
cd $(PROJECT_DIR) && $(PROJECT_DIR)/gen_live_documentation.sh
cd $(PROJECT_DIR) && $(PROJECT_DIR)/gen_config_board.sh $(BOARD_DIR) $(SHORT_BOARD_NAME)
# All c/c++ objects depend on generated
$(OBJS) : $(GENERATED)
$(PCHOBJ) : $(GENERATED)
CLEAN_GENERATED_HOOK:
rm -f $(GENERATED_DIR)/*
git checkout -- $(PROJECT_DIR)/hw_layer/mass_storage/ramdisk_image.h
git checkout -- $(PROJECT_DIR)/hw_layer/mass_storage/ramdisk_image_compressed.h