-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (37 loc) · 1.15 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
51
# add this to prevent removing intermediate files.
.SECONDARY:
# Default target
all: doc test
# Config
include scripts/config.mk
# Rules for search target
include scripts/source.mk
# Rules for environment
include scripts/envs.mk
# Rules for tool and utilities
include scripts/tools.mk
# Rules for build documentation
include scripts/doc.mk
# Rules for build and unit test
include scripts/test.mk
doc: $(DOCUMENT_TARGET)
test: $(TEST_TARGET_LOGS)
@echo done!
defconfig: $(BUILD_DIR)
@-mv -f .config .config.old
@-rm -f .config
@genconfig --header-path=$(AUTOCONF_PATH) --config-out=.config
menuconfig: $(BUILD_DIR)
@menuconfig
@genconfig --header-path=$(AUTOCONF_PATH)
clean:
@rm -rf $(BUILD_DIR)
help:
@echo "Usage: make [target]"
@echo " target: menuconfig - configure the project."
@echo " target: defconfig - Make a .config file and set to default."
@echo " target: doc - generate documentation for this project"
@echo " target: clean - clean all generated files"
@echo " target: all - build all target"
@echo " target: help - display this help message"
.PHONY: test clean defconfig menuconfig