From 8d1225aabb7bdd3750f161133931b1c456bc2fdb Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Wed, 5 Apr 2017 20:11:17 +0200 Subject: [PATCH] Makefile: use PREFIX for install --- makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index c9f21d9..8b7b479 100644 --- a/makefile +++ b/makefile @@ -1,10 +1,12 @@ +PREFIX ?= /usr/local + cshatag: gcc cshatag.c -l crypto -o cshatag install: - cp -v cshatag /usr/local/bin - mkdir -v /usr/local/share/man/man1 2> /dev/null || true - cp -v cshatag.1 /usr/local/share/man/man1 + cp -v cshatag ${PREFIX}/bin + mkdir -v ${PREFIX}/share/man/man1 2> /dev/null || true + cp -v cshatag.1 ${PREFIX}/share/man/man1 clean: - rm -f cshatag \ No newline at end of file + rm -f cshatag