Skip to content

Commit 67b613a

Browse files
committed
feat(ci): allow make commands to be run on a single project
1 parent e5f37cd commit 67b613a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
SUBDIRS := $(filter-out src/dbtools-mcp-server src/mysql-mcp-server src/oci-pricing-mcp-server src/oracle-db-doc-mcp-server,$(wildcard src/*))
1+
SOURCE_FOLDER := src
2+
# These directories will be excluded from common cmds like build, install, test etc
3+
EXCLUDED_PROJECTS := dbtools-mcp-server mysql-mcp-server oci-pricing-mcp-server oracle-db-doc-mcp-server
4+
EXCLUDED_PROJECT_PATHS = $(addprefix $(SOURCE_FOLDER)/, $(EXCLUDED_PROJECTS))
5+
# This matches all paths by default. If you want to run a command on a specific package you can specify the `project` variable
6+
project ?= *
7+
# These are the directories that will be built
8+
DIRS := $(wildcard $(SOURCE_FOLDER)/$(project))
9+
SUBDIRS := $(filter-out $(EXCLUDED_PROJECT_PATHS), $(DIRS))
210

311
.PHONY: test format
412

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ This section will help you set up your environment to prepare it for local devel
257257
make build
258258
make install
259259
```
260+
**Note**: If you want to run commands in a single server project, you can add the `project` variable to only run commands for that specific project
261+
For example: `make project=oci-compute-mcp-server build` will only build the compute mcp server
260262

261263
3. Add desired servers to your MCP client configuration, but run them using the locally installed server package instead
262264

0 commit comments

Comments
 (0)