lemnos / tt

A terminal based typing test.
MIT License
737 stars 49 forks source link

make install fails on OS X #7

Closed cviebrock closed 3 years ago

cviebrock commented 3 years ago
> sudo make install
Password:

install -Dm755 bin/tt -t /usr/local/bin
install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64

This is on OSX 10.15.7 with go version go1.16.5 darwin/amd64 installed via brew. It doesn't look like the OSX version of install has a -D option, so maybe this could be done with mkdir -p instead?

AulonSal commented 3 years ago

Hey, not the maintainer, but would this Makefile, https://github.com/AulonSal/tt/blob/969e752c162caf26622a041e2c6e51872804fb9c/Makefile, work for you?

lemnos commented 3 years ago

Sorry this took so long. @AulonSal's patch looks like it should do the trick but I can't test it since I don't have a mac. Confirmation would be appreciated.

Thanks

cviebrock commented 3 years ago

Works now @lemnos ... thanks!