Skip to content

Commit

Permalink
Merge pull request #53 from EchoVault/chore/remove-unused-makefile-co…
Browse files Browse the repository at this point in the history
…mmands

Removed redundant Makefile commands
  • Loading branch information
kelvinmwinuka authored Jun 13, 2024
2 parents 05a23f4 + 695e777 commit 09d19b7
Show file tree
Hide file tree
Showing 2 changed files with 542 additions and 554 deletions.
12 changes: 0 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
build-modules:
CGO_ENABLED=$(CGO_ENABLED) CC=$(CC) GOOS=$(GOOS) GOARCH=$(GOARCH) go build -buildmode=plugin -o $(DEST)/module_set/module_set.so ./volumes/modules/module_set/module_set.go && \
CGO_ENABLED=$(CGO_ENABLED) CC=$(CC) GOOS=$(GOOS) GOARCH=$(GOARCH) go build -buildmode=plugin -o $(DEST)/module_get/module_get.so ./volumes/modules/module_get/module_get.go

build-modules-test:
CGO_ENABLED=1 go build --race=$(RACE) -buildmode=plugin -o $(OUT)/modules/module_set/module_set.so ./volumes/modules/module_set/module_set.go && \
CGO_ENABLED=1 go build --race=$(RACE) -buildmode=plugin -o $(OUT)/modules/module_get/module_get.so ./volumes/modules/module_get/module_get.go

build-server:
CGO_ENABLED=$(CGO_ENABLED) CC=$(CC) GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(DEST)/server ./cmd/main.go

build:
env CGO_ENABLED=1 CC=x86_64-linux-musl-gcc GOOS=linux GOARCH=amd64 DEST=volumes/modules make build-modules && \
env CGO_ENABLED=1 CC=x86_64-linux-musl-gcc GOOS=linux GOARCH=amd64 DEST=bin/linux/x86_64 make build-server

run:
make build && \
docker-compose up --build

test:
Expand Down
Loading

0 comments on commit 09d19b7

Please sign in to comment.