-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (35 loc) · 1.48 KB
/
Makefile
File metadata and controls
41 lines (35 loc) · 1.48 KB
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
34
35
36
37
38
39
40
41
SHELL := /bin/bash
.DEFAULT_GOAL:=help
# Validates that managed-notification descriptions end with a period.
# 1) Find files with .json extension that contain "description":
# grep -rnw '.' --include "*.json" -e "description"
# 2) Pipe those files into another grep to find files that
# have a description ending with no period:
# grep -v '"description".*\."'
# We echo the error and return if a description not ending with a period is found.
.PHONY: validate
validate:
@!(grep -rnw '.' --include "*.json" -e "description" | grep -v '"description".*\."') || (echo "Please add a period at the end of the description in the above files."; exit 1)
@echo "Validation succeeded."
.PHONY: help
help:
@echo 'Usage:'
@echo ' make <target>'
@echo ''
@echo 'Targets:'
@echo ' validate - validates that managed-notification descriptions end with a period.'
@echo ' build-container - builds the MCP server container with podman.'
.PHONY: checklinks
checklinks:
scripts/checklinks.sh
.PHONY: checkseverity
checkseverity:
scripts/checkseverity.sh
.PHONY: build-container
build-container:
@echo "Setting up managed-notifications directory for container build..."
@rm -rf mcp/managed-notifications
@mkdir -p mcp/managed-notifications
@cp -r cluster hcp ocm osd rosa scripts mcp/managed-notifications/
@echo "Building container with podman..."
cd mcp && podman build --no-cache $(shell [ "$$(uname)" = "Darwin" ] && echo "--platform linux/amd64") -t managed-notifications-search:latest -f Containerfile .