aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2019-01-22 13:31:21 +0100
committerAyke van Laethem <[email protected]>2019-02-01 13:26:32 +0100
commit8aed8d8c569b38a339ce8794e18c4c1c0d6ae1b2 (patch)
treec7364788c4cf4a523c89aac08eb032a2717034b8 /Makefile
parentc3a15885f553755e34bdbb2de8e749ac2d75a55c (diff)
downloadtinygo-8aed8d8c569b38a339ce8794e18c4c1c0d6ae1b2.tar.gz
tinygo-8aed8d8c569b38a339ce8794e18c4c1c0d6ae1b2.zip
Makefile: rename tgo to tinygo
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index eb477ecf7..19fac1309 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
# aliases
-all: tgo
-tgo: build/tgo
+all: tinygo
+tinygo: build/tinygo
-.PHONY: all tgo run-test run-blinky run-blinky2 clean fmt gen-device gen-device-nrf gen-device-avr
+.PHONY: all tinygo run-test run-blinky run-blinky2 clean fmt gen-device gen-device-nrf gen-device-avr
TARGET ?= unix
@@ -96,17 +96,17 @@ gen-device-stm32:
go fmt ./src/device/stm32
# Build the Go compiler.
-build/tgo: *.go compiler/*.go interp/*.go loader/*.go ir/*.go
+tinygo:
@mkdir -p build
- go build -o build/tgo -i .
+ go build -o build/tinygo .
# Binary that can run on the host.
-build/%: src/examples/% src/examples/%/*.go build/tgo src/runtime/*.go
- ./build/tgo build $(TGOFLAGS) -size=short -o $@ $(subst src/,,$<)
+build/%: src/examples/% src/examples/%/*.go build/tinygo src/runtime/*.go
+ ./build/tinygo build $(TGOFLAGS) -size=short -o $@ $(subst src/,,$<)
# ELF file that can run on a microcontroller.
-build/%.elf: src/examples/% src/examples/%/*.go build/tgo src/runtime/*.go
- ./build/tgo build $(TGOFLAGS) -size=short -o $@ $(subst src/,,$<)
+build/%.elf: src/examples/% src/examples/%/*.go build/tinygo src/runtime/*.go
+ ./build/tinygo build $(TGOFLAGS) -size=short -o $@ $(subst src/,,$<)
# Convert executable to Intel hex file (for flashing).
build/%.hex: build/%.elf