···11+.phony: build
22+build:
33+ # Remove any previously compiled code
44+ rm -rf out1 out2
55+ # Compile the first Gleam package
66+ cargo run -- compile-package --name one --src src1 --out out1
77+ # Compile the second Gleam package which depends on the first
88+ cargo run -- compile-package --name two --src src2 --out out2 --lib out1
99+ # Compile the Erlang
1010+ cd out1 && erlc *.erl
1111+ cd out2 && erlc *.erl
1212+ # Run the code
1313+ erl -pa out1 out2 -noshell -eval "erlang:display(two:main()),halt()"