$ git clone http://gcodetool.ion.nu/gcodetool.git
commit f8358ec4d30a3e0db8c5c9d7db5e0a27199a408c
Author: Alicia <...>
Date: Sun Jul 7 02:21:01 2019 +0200
Added an 'install' target.
diff --git a/Makefile b/Makefile
index a85adc3..78186f8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,10 @@
+PREFIX=/usr
+BINDIR=$(PREFIX)/bin
CFLAGS=-Wall -g3
gcodetool: main.o gcode.o mirror.o move.o info.o
$(CC) $^ -lm -o $@
static: CC+=-static
static: gcodetool
+
+install: gcodetool
+ install -D gcodetool $(BINDIR)/gcodetool