mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 19:44:00 +00:00
Add make fmt
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
all: tgo
|
all: tgo
|
||||||
tgo: build/tgo
|
tgo: build/tgo
|
||||||
|
|
||||||
.PHONY: all tgo run-hello run-blinky clean gen-device gen-device-nrf
|
.PHONY: all tgo run-hello run-blinky clean fmt gen-device gen-device-nrf
|
||||||
|
|
||||||
# Custom LLVM toolchain.
|
# Custom LLVM toolchain.
|
||||||
LLVM := $(shell go env GOPATH)/src/github.com/aykevl/llvm/bindings/go/llvm/workdir/llvm_build/bin/
|
LLVM := $(shell go env GOPATH)/src/github.com/aykevl/llvm/bindings/go/llvm/workdir/llvm_build/bin/
|
||||||
@@ -77,6 +77,9 @@ endif
|
|||||||
clean:
|
clean:
|
||||||
@rm -rf build
|
@rm -rf build
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
go fmt . ./src/examples/hello ./src/runtime
|
||||||
|
|
||||||
gen-device: gen-device-nrf
|
gen-device: gen-device-nrf
|
||||||
|
|
||||||
gen-device-nrf:
|
gen-device-nrf:
|
||||||
|
|||||||
Reference in New Issue
Block a user