aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2016-12-24 23:49:29 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2016-12-24 23:49:29 +0100
commit335d8c673c1251977c98bcd964cb2d6831c0c9f8 (patch)
tree229a2b71f4754edc9411945dce1b6e7e009fc0cb
parentbc475ef9585d31377b2f02dde4a4941ecec58d06 (diff)
downloadcolorize-335d8c673c1251977c98bcd964cb2d6831c0c9f8.tar.gz
colorize-335d8c673c1251977c98bcd964cb2d6831c0c9f8.tar.bz2
Add Makefile install target
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2c111eb..381f11a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: check check_valgrind clean release
+.PHONY: check check_valgrind install clean release
.SUFFIXES:
.SUFFIXES: .c .o
@@ -19,6 +19,10 @@ check_valgrind:
@which valgrind >/dev/null 2>&1 || (printf '%s\n' "valgrind not found" && exit 1)
perl ./test.pl --valgrind || exit 0
+install:
+ test ! -d $(DESTDIR)/usr/bin && mkdir -p $(DESTDIR)/usr/bin || exit 0
+ cp colorize $(DESTDIR)/usr/bin
+
clean:
rm -f a.out colorize debug.txt version.h