From d977f0f30889d6b0079e90f9b11bd0c7fe544fbf Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 2 Nov 2014 20:20:53 +0100 Subject: [PATCH] Add "install" make target --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 2e205c2..2f0a2a9 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,12 @@ aclock-curses: aclock-termcap: cc aclock-unix-termcap.c -o aclock-termcap -ltermcap -lm +install-local: aclock-curses + install -d -o $(USER) -g $(GROUP) -m 755 \ + $(DESTDIR)$(PREFIX)/bin + install -p -o $(USER) -g $(GROUP) -m 755 aclock-curses \ + $(DESTDIR)$(PREFIX)/bin/aclock + clean-local: rm -f aclock aclock-aalib aclock-curses aclock-termcap -- 2.39.2