snake isn't built
kephas opened this issue · 2 comments
kephas commented
I tried building snake
but snake.c
isn't generated:
$ make bin/snake
bin/mirth2
Building.
Done.
rm -f bin/mirth.c
gcc -std=c99 -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Werror -pedantic -o bin/snake bin/snake.c `pkg-config --libs sdl2`
gcc: error: bin/snake.c: No such file or directory
make: *** [Makefile:74: bin/snake] Error 1
typeswitch-dev commented
Hi @kephas!
To get snake building, you will need to uncomment the line containing import(snake)
in src/main.mth
(line 67). I.e., turn it into
import(snake)
Then make bin/snake
and make play-snake
should work, assuming sdl2 is available (and pkg-config can find it). Please let me know if you run into an issue.
(This is terrible UI, I know. I'm sorry, and I will fix it.)
kephas commented
Changed mirth.mth
and it works like a charm!