06fe3f1c43
Modify makefiles: * to create local mirror of RHEL repo; * to include RHEL repo to ISO. Add support of RHEL packages download to master node via puppet. Add RHEL profile to cobbler. Add minimal RHEL support to deployment procedure.
80 lines
2.4 KiB
Makefile
80 lines
2.4 KiB
Makefile
.PHONY: all clean test help deep_clean
|
|
|
|
help:
|
|
@echo 'Build directives (can be overrided by environment variables'
|
|
@echo 'or by command line parameters):'
|
|
@echo ' SOURCE_DIR: $(SOURCE_DIR)'
|
|
@echo ' BUILD_DIR: $(BUILD_DIR)'
|
|
@echo ' LOCAL_MIRROR: $(LOCAL_MIRROR)'
|
|
@echo ' YUM_REPOS: $(YUM_REPOS)'
|
|
@echo ' MIRROR_CENTOS: $(MIRROR_CENTOS)'
|
|
@echo ' MIRROR_RHEL: $(MIRROR_RHEL)'
|
|
@echo ' MIRROR_EGGS: $(MIRROR_EGGS)'
|
|
@echo ' MIRROR_GEMS: $(MIRROR_GEMS)'
|
|
@echo ' MIRROR_SRC: $(MIRROR_SRC)'
|
|
@echo ' ISO_DIR/ISO_NAME: $(ISO_PATH)'
|
|
@echo ' ENV_NAME: $(ENV_NAME)'
|
|
@echo ' KSYAML: $(KSYAML)'
|
|
@echo
|
|
@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 ' test-integration-env - prepares integration test environment'
|
|
@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'
|
|
@echo ' distclean - cleans deep_clean + clean-integration-test'
|
|
@echo
|
|
@echo 'To build system using one of the proprietary mirrors use '
|
|
@echo 'the following commands:'
|
|
@echo
|
|
@echo 'Saratov office (default):'
|
|
@echo 'make iso'
|
|
@echo
|
|
@echo 'Moscow office:'
|
|
@echo 'make iso USE_MIRROR=msk'
|
|
@echo
|
|
@echo 'Custom location:'
|
|
@echo 'make iso YUM_REPOS=proprietary \
|
|
MIRROR_CENTOS=http://<your_mirror>/centos \
|
|
MIRROR_EGGS=http://<your_mirror>/eggs \
|
|
MIRROR_GEMS=http://<your_mirror>/gems \
|
|
MIRROR_SRC=http://<your_mirror>/src'
|
|
|
|
# Path to the sources.
|
|
# Default value: directory with Makefile
|
|
SOURCE_DIR?=$(dir $(lastword $(MAKEFILE_LIST)))
|
|
SOURCE_DIR:=$(abspath $(SOURCE_DIR))
|
|
|
|
all: iso
|
|
|
|
test: test-unit test-integration
|
|
|
|
clean:
|
|
sudo rm -rf $(BUILD_DIR)
|
|
deep_clean: clean
|
|
sudo rm -rf $(LOCAL_MIRROR)
|
|
|
|
distclean: deep_clean clean-integration-test
|
|
|
|
# Common configuration file.
|
|
include $(SOURCE_DIR)/config.mk
|
|
|
|
# Macroses for make
|
|
include $(SOURCE_DIR)/rules.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)/fuelweb_test/module.mk
|