47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
PWD:=$(shell pwd -P)
|
|
|
|
SOURCE_DIR:=$(PWD)
|
|
BUILD_DIR:=$(PWD)/build
|
|
|
|
# Common configuration file.
|
|
include $(SOURCE_DIR)/config.mk
|
|
|
|
# Sandbox macroses.
|
|
include $(SOURCE_DIR)/sandbox.mk
|
|
|
|
# Modules
|
|
include $(SOURCE_DIR)/mirror/module.mk
|
|
include $(SOURCE_DIR)/packages/module.mk
|
|
include $(SOURCE_DIR)/bootstrap/module.mk
|
|
include $(SOURCE_DIR)/iso/module.mk
|
|
|
|
include $(SOURCE_DIR)/test/module.mk
|
|
|
|
.PHONY: all clean test help deep_clean
|
|
|
|
help:
|
|
@echo 'Available targets:'
|
|
@echo ' all - build product'
|
|
@echo ' bootstrap - build bootstrap'
|
|
@echo ' iso - build iso image'
|
|
@echo ' img - build flash stick image'
|
|
@echo ' test - run all tests'
|
|
@echo ' test-unit - run unit tests'
|
|
@echo ' test-integration - run integration tests'
|
|
@echo ' clean-integration-test - clean integration test environment'
|
|
@echo ' clean - remove build directory and resetting .done flags'
|
|
@echo ' deep_clean - clean + removing $(LOCAL_MIRROR) directory'
|
|
|
|
all: iso
|
|
|
|
test: test-unit test-integration
|
|
|
|
clean:
|
|
rm -rf $(BUILD_DIR)
|
|
deep_clean: clean
|
|
rm -rf $(LOCAL_MIRROR)
|
|
|
|
distclean: deep_clean clean-integration-test
|
|
|
|
include $(SOURCE_DIR)/rules.mk
|