From ae819cbc4b7944f2106b13b0ecfef624e4cd5571 Mon Sep 17 00:00:00 2001 From: Jarrad Whitaker Date: Sat, 28 Nov 2015 20:01:14 +1100 Subject: [PATCH 1/2] rm -f in make clean, so no errors if it doesn't exist --- driver-uinput/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver-uinput/Makefile b/driver-uinput/Makefile index 7eeeb50..3a8ee18 100644 --- a/driver-uinput/Makefile +++ b/driver-uinput/Makefile @@ -2,4 +2,4 @@ networktablet : networktablet.c protocol.h clean : - rm networktablet + rm -f networktablet From 4262d0a1cd285952c27cb117e32f1fe8d7069529 Mon Sep 17 00:00:00 2001 From: Jarrad Whitaker Date: Sat, 28 Nov 2015 21:00:59 +1100 Subject: [PATCH 2/2] implement make install --- driver-uinput/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/driver-uinput/Makefile b/driver-uinput/Makefile index 3a8ee18..4fc185f 100644 --- a/driver-uinput/Makefile +++ b/driver-uinput/Makefile @@ -1,5 +1,11 @@ +TARGET = networktablet +PREFIX = /usr/local +BINDIR = $(PREFIX)/bin networktablet : networktablet.c protocol.h clean : rm -f networktablet + +install : + install -D networktablet $(DESTDIR)$(BINDIR)/networktablet