]> arthur.barton.de Git - aclock.git/commitdiff
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 2e205c265b592555c759476d6cbc84b4448e7844..2f0a2a9c14c2350e4f9ae87c49c11d4aff9f668b 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