From: Alexander Barton Date: Sun, 2 Nov 2014 19:20:53 +0000 (+0100) Subject: Add "install" make target X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=aclock.git;a=commitdiff_plain;h=d977f0f30889d6b0079e90f9b11bd0c7fe544fbf Add "install" make target --- 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