-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 1.05 KB
/
Copy pathMakefile
File metadata and controls
41 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
VESC_FW_PATH ?= /vedderb/bldc
VESC_TOOL_PATH ?= /vedderb/vesc_tool
VESC_PKG_PATH ?= /vedderb/vesc_pkg
ifeq (,$(wildcard /.dockerenv))
$(error "This Makefile is intended to be run inside a Docker container")
endif
export PATH := $(PATH):$(shell pwd)/build
build/vesc_tool: build/res_fw.qrc
cd $(VESC_TOOL_PATH); ./build_lin_original_only
# Create a build checkpoint
rm -f build/vesc_tool; cp $(VESC_TOOL_PATH)/build/lin/vesc_tool_6.05 build/vesc_tool
build/res_fw.qrc:
cd $(VESC_TOOL_PATH); ./build_cp_fw
# Create a build checkpoint
cp $(VESC_TOOL_PATH)/res/firmwares/res_fw.qrc build/res_fw.qrc
packages: vesc_tool
cd $(VESC_PKG_PATH) && make
build/%.vescpkg: build/vesc_tool
cd $(VESC_PKG_PATH)/$(basename $(notdir $@)); make -j4
cp $(VESC_PKG_PATH)/$(basename $(notdir $@))/$(notdir $@) $@
clean: clean_packages clean_tool clean_fw
clean_packages:
cd $(VESC_PKG_PATH) && make clean
rm -f build/*.vescpkg
clean_tool:
cd $(VESC_TOOL_PATH); rm -rf build/*
rm -f build/vesc_tool
clean_fw:
cd $(VESC_FW_PATH); make all_fw_clean
rm -f build/res_fw.qrc