benbaker76 / Gfx2Next

ZX Spectrum Next graphics conversion tool.
https://www.baker76.com/gfx2next
MIT License
24 stars 7 forks source link

Makefile: add `install` target and improve others #10

Closed ped7g closed 2 years ago

ped7g commented 2 years ago

IMHO it's a bit more correct this way (in subtle ways, like make distro with original Makefile does for me delete bin/ multiple times, the tmp/ is removed by clean so why should distro delete it as last step, etc...

But feels like the Makefile become lot longer, so up to you, whether you like it like this, or prefer simpler Makefile.

(some of the changes scratch my personal itch about installing tool binaries to ~/.local/bin, so with this change I can do make prefix=~/.local install to build+install the binary, other changes are "cleanup" and not directly connected to this goal)