commit cce403c4cb34816a6ba5c70d5344df0f0f0b9522 parent 733ebfb88b16991f42f276aba3caef952b157ad2 Author: Shivakumar <[email protected]> Date: Mon, 27 Jul 2026 02:33:47 +0530 chore: add Makefile Signed-off-by: Shivakumar <[email protected]> Diffstat:
| A | Makefile | | | 23 | +++++++++++++++++++++++ |
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -0,0 +1,23 @@ +APP_PATH = ./ +BIN_PATH = ./bin + +## build: compiles binaries to bin/ dir +.PHONY: build +build: + @mkdir -p ${BIN_PATH} + GOARCH=amd64 GOOS=darwin go build -o ${BIN_PATH}/certichain ${APP_PATH} + +## clean: removes the bin/ dir +.PHONY: clean +clean: + @rm -rf ${BIN_PATH} + +## test: runs test for internal/ dir +.PHONY: test +test: + @go test ./internal/... + +.PHONY: help +help: + @echo "Usage:" + @sed -n 's/^##[[:space:]]*/\t/p' $(MAKEFILE_LIST)