Add "install" make target
authorAlexander Barton <alex@barton.de>
Sun, 2 Nov 2014 19:20:53 +0000 (20:20 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 2 Nov 2014 19:20:53 +0000 (20:20 +0100)
Makefile

index 2e205c2..2f0a2a9 100644 (file)
--- 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