Skip to content

Commit

Permalink
fix: previous commit did not include the 'new' files; fix: gitignore …
Browse files Browse the repository at this point in the history
…now does not track the out/ directory; feat: Makefile now supports automatic build and run of the server and client
  • Loading branch information
2101dudu committed Nov 13, 2024
1 parent 4966e93 commit f65349b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# dudu's neovim "undotree"
Users/

# Binaries for programs and plugins
Expand All @@ -12,6 +13,7 @@ Users/

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
out/

# Dependency directories (remove the comment below to include it)
# vendor/
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ SERVER_RUNNER := ./cmd/nms/server/runner.go
.PHONY: all build build-agent build-server agent server clean
all: build-agent build-server

agent: build-agent run-agent

server: build-server run-server

build-agent:
@echo "Building agent..."
@mkdir -p out/bin
Expand All @@ -15,11 +19,11 @@ build-server:
@mkdir -p out/bin
go build -o out/bin/server $(SERVER_RUNNER)

agent:
run-agent:
@echo "Running agent..."
@./out/bin/agent

server:
run-server:
@echo "Running server..."
@./out/bin/server

Expand Down

1 comment on commit f65349b

@2101dudu
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot once more to add the 'new' files. Disregard this part of the commit title: "fix: previous commit did not include the 'new' files"

Please sign in to comment.