2
# Embox main Makefile (distribution).
5
include mk/core/common.mk
9
export DIST_BASE_DIR := .
10
export EMBOX_DIST_BASE_DIR := $(abspath $(DIST_BASE_DIR))
20
Default build target. It is an alias to '$(MAKE) build'.
23
make_build = $(MAKE) -f mk/build.mk
31
Usage: $(MAKE) build-<template>
35
Build the given <template> (if any) or the current active configuration.
37
Compile all source files and link objects into main executable
38
producing various debug and log info.
43
+@$(make_build) build __REBUILD_ROOTFS=1
48
Forces rootfs image to be rebuilt unconditionally.
58
+@$(make_build) build DISASSEMBLY=y
62
Disassembly image file
77
Generate documentation from doxygen comments in source files.
87
@$(RM) -r $(ROOT_DIR)/build
93
Remove most build artifacts (image, libraries, objects, etc.) #TODO Usecase?
97
# Make help and its friends.
101
@$(info $(help_main))#
104
Usage: $(MAKE) [targets]
105
Embox version $(EMBOX_VERSION) [distibution].
108
all (a) - Default build target, alias to '$(MAKE) build'
109
build (b) - Build the current active configuration
111
Documentation targets:
112
docsgen - Denerate documentation from doxygen comments
115
clean (c) - Remove most build artifacts (image, libraries, objects, etc.)
125
help_targets := $(help_entries:%=help-%)