Skip to content

Commit cda90b7

Browse files
Create path variables to executables in Makefile
1 parent fb86a74 commit cda90b7

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
API_PATH := bin/api
2+
CLI_PATH := bin/cli
3+
14
.PHONY: build
25
build:
3-
go build -o bin/api cmd/recite/main.go
4-
go build -o bin/cli cmd/cli/main.go
6+
go build -o ${API_PATH} cmd/recite/main.go
7+
go build -o ${CLI_PATH} cmd/cli/main.go
58

6-
.PHONY: run-api
7-
run-api:
8-
./recite
9+
.PHONY: run
10+
run:
11+
${API_PATH}
912

1013
.PHONY: api
11-
api: build run-api
14+
api: build run
1215

1316
.PHONY: test
1417
test:

0 commit comments

Comments
 (0)