icyleaf/fast-crystal

Makefile broken?

Opened this issue · 3 comments

after running make I get

 ~/Desktop/fast-crystal[master]> make

/usr/local/bin/crystal build --release -o bin/fast-crystal src/fast-crystal.cr 
ld: can't open output file for writing: ~/Desktop/fast-crystal/bin/fast-crystal, errno=2 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc "${@}" -o '~/Desktop/fast-crystal/bin/fast-crystal'  -rdynamic  -lpcre -lgc -lpthread /usr/local/Cellar/crystal-lang/0.23.1_1/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib`
make: *** [build] Error 1

macOS 10.13, Crystal 0.23.1 (2017-09-08) LLVM 4.0.1, GNU Make 3.81

I guess it needs to create bin directory.

yes wondered why clean has mkdir bin at the end anyway

do you know if there are plans/ feasible solutions such as to address reverse.each being converted to reverse_each e.g.?

Change it Makefile, now it works.