Files
my-rook-config/images/Makefile
T

55 lines
1.8 KiB
Makefile
Raw Normal View History

2017-06-02 13:38:04 -07:00
# Copyright 2016 The Rook Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
include image.mk
2018-01-08 20:58:28 -08:00
PLATFORMS ?= linux_amd64 linux_arm64
2017-06-02 13:38:04 -07:00
2018-05-11 16:40:28 -06:00
# tini's version
2020-05-07 16:46:59 -06:00
export TINI_VERSION = v0.19.0
2018-05-11 16:40:28 -06:00
2017-06-09 13:34:41 -07:00
# ====================================================================================
# Image Targets
2017-06-02 13:38:04 -07:00
2018-05-11 16:40:28 -06:00
ceph.%:
2018-05-18 14:25:39 -07:00
@$(MAKE) -C ceph PLATFORM=$*
2017-06-09 13:34:41 -07:00
2021-08-30 12:26:32 -06:00
do.build: ceph.$(PLATFORM) ;
build.all: ## Build images for all platforms.
$(MAKE) -C ceph prerequisites
$(MAKE) $(foreach p,$(PLATFORMS), ceph.$(p)) ;
2017-06-02 13:38:04 -07:00
# ====================================================================================
# Help
2020-02-17 11:06:01 +01:00
define HELPTEXT
Options:
PLATFORM The platform to build.
PULL Whether to pull base images. Default is 1.
V Set to 1 enable verbose build. Default is 0.
2017-06-02 13:38:04 -07:00
2020-02-17 11:06:01 +01:00
Advanced Options:
PRUNE_HOURS The number of hours from when an image is
last used for it to be considered a target for
pruning. Default is 48 hrs.
PRUNE_KEEP The minimum number of cached images to keep.
Default is 24 images.
endef
export HELPTEXT
2017-06-02 13:38:04 -07:00
.PHONY: help
2020-02-17 11:06:01 +01:00
help: ## Show this help menu.
@echo "Usage: make [TARGET ...]"
@echo ""
@grep --no-filename -E '^[a-zA-Z_%-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@echo ""
@echo "$$HELPTEXT"