mirror of
https://github.com/gleam-lang/gleam.git
synced 2025-12-23 09:47:08 +00:00
10 lines
325 B
Makefile
10 lines
325 B
Makefile
.phony: build
|
|
build:
|
|
# Remove any previously compiled code
|
|
rm -rf out
|
|
# Compile the Gleam
|
|
cargo run -- compile-package --name some_name --src src --test test --out out
|
|
# Compile the Erlang
|
|
cd out && erlc *.erl
|
|
# Run the code
|
|
erl -pa out -noshell -eval "erlang:display(two:main()),erlang:display(three:test()),halt()"
|