Skip to content

Commit

Permalink
Makefile: use PREFIX for install
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoulaj authored and rfjakob committed Sep 30, 2018
1 parent 926c233 commit 8d1225a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
@@ -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
rm -f cshatag

0 comments on commit 8d1225a

Please sign in to comment.