Skip to content

Commit a155863

Browse files
committed
Makefile: add generated and clean targets
1 parent 51b9d37 commit a155863

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,12 @@ $(wit_files):
1212
.PHONY: golden
1313
golden: json
1414
go test ./wit -update
15+
16+
# generated writes test Go code to the filesystem
17+
.PHONY: generated
18+
generated: clean
19+
go test ./wit/bindgen -write
20+
21+
.PHONY: clean
22+
clean:
23+
rm -rf ./generated/*

0 commit comments

Comments
 (0)