Skip to content

Commit 8aed8d8

Browse files
committed
Makefile: rename tgo to tinygo
1 parent c3a1588 commit 8aed8d8

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
# aliases
3-
all: tgo
4-
tgo: build/tgo
3+
all: tinygo
4+
tinygo: build/tinygo
55

6-
.PHONY: all tgo run-test run-blinky run-blinky2 clean fmt gen-device gen-device-nrf gen-device-avr
6+
.PHONY: all tinygo run-test run-blinky run-blinky2 clean fmt gen-device gen-device-nrf gen-device-avr
77

88
TARGET ?= unix
99

@@ -96,17 +96,17 @@ gen-device-stm32:
9696
go fmt ./src/device/stm32
9797

9898
# Build the Go compiler.
99-
build/tgo: *.go compiler/*.go interp/*.go loader/*.go ir/*.go
99+
tinygo:
100100
@mkdir -p build
101-
go build -o build/tgo -i .
101+
go build -o build/tinygo .
102102

103103
# Binary that can run on the host.
104-
build/%: src/examples/% src/examples/%/*.go build/tgo src/runtime/*.go
105-
./build/tgo build $(TGOFLAGS) -size=short -o $@ $(subst src/,,$<)
104+
build/%: src/examples/% src/examples/%/*.go build/tinygo src/runtime/*.go
105+
./build/tinygo build $(TGOFLAGS) -size=short -o $@ $(subst src/,,$<)
106106

107107
# ELF file that can run on a microcontroller.
108-
build/%.elf: src/examples/% src/examples/%/*.go build/tgo src/runtime/*.go
109-
./build/tgo build $(TGOFLAGS) -size=short -o $@ $(subst src/,,$<)
108+
build/%.elf: src/examples/% src/examples/%/*.go build/tinygo src/runtime/*.go
109+
./build/tinygo build $(TGOFLAGS) -size=short -o $@ $(subst src/,,$<)
110110

111111
# Convert executable to Intel hex file (for flashing).
112112
build/%.hex: build/%.elf

src/runtime/runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"unsafe"
55
)
66

7-
const Compiler = "tgo"
7+
const Compiler = "tinygo"
88

99
// The compiler will fill this with calls to the initialization function of each
1010
// package.

0 commit comments

Comments
 (0)