Skip to content

Commit 8902599

Browse files
committed
Sort Makefile targets
1 parent 65d0145 commit 8902599

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Makefile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
bin/coderd:
2+
mkdir -p bin
3+
go build -o bin/coderd cmd/coderd/main.go
4+
.PHONY: bin/coderd
5+
6+
build: site/out bin/coderd
7+
.PHONY: build
8+
19
# Runs migrations to output a dump of the database.
210
database/dump.sql: $(wildcard database/migrations/*.sql)
311
go run database/dump/main.go
@@ -25,19 +33,6 @@ fmt: fmt/prettier
2533
gen: database/generate peerbroker/proto provisionersdk/proto
2634
.PHONY: gen
2735

28-
bin/coderd:
29-
mkdir -p bin
30-
go build -o bin/coderd cmd/coderd/main.go
31-
.PHONY: bin/coderd
32-
33-
site/out:
34-
yarn build
35-
yarn export
36-
.PHONY: site/out
37-
38-
build: site/out bin/coderd
39-
.PHONY: build
40-
4136
# Generates the protocol files.
4237
peerbroker/proto: peerbroker/proto/peerbroker.proto
4338
cd peerbroker/proto && protoc \
@@ -56,4 +51,9 @@ provisionersdk/proto: provisionersdk/proto/provisioner.proto
5651
--go-drpc_out=. \
5752
--go-drpc_opt=paths=source_relative \
5853
./provisioner.proto
59-
.PHONY: provisionersdk/proto
54+
.PHONY: provisionersdk/proto
55+
56+
site/out:
57+
yarn build
58+
yarn export
59+
.PHONY: site/out

0 commit comments

Comments
 (0)