-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 824 Bytes
/
Makefile
File metadata and controls
33 lines (24 loc) · 824 Bytes
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
#
# IPMI Simulator
#
VERSION := 0.1
IMG_NAME := vaporio/ipmi-simulator
TAGS := ${IMG_NAME}:latest ${IMG_NAME}:${VERSION}
.PHONY: tags
tags: ## Print the tags used for the Docker images
@echo "${TAGS}"
.PHONY: build
build: ## Build the Docker image for IPMI Simulator
tags="" ; \
for tag in $(TAGS); do tags="$${tags} -t $${tag}"; done ; \
docker build -f Dockerfile $${tags} .
.PHONY: run
run: build ## Build and run the IPMI Simulator locally (localhost:623/udp)
docker run -d -p 623:623/udp --name ipmisim ${IMG_NAME}
.PHONY: version
version: ## Print the version of IPMI Simulator
@echo "${VERSION}"
.PHONY: help
help: ## Print Make usage information
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort
.DEFAULT_GOAL := help