summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-08 17:15:03 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-08 17:15:03 +0200
commit04efc9ddd7b94ed610728ac511ff76ce188031ab (patch)
tree9c6367dc7737795878a355c4411f02c55c88e629 /Makefile
parente6803897fe91861f8247a33bddc1d598eed062ad (diff)
downloadnthash-04efc9ddd7b94ed610728ac511ff76ce188031ab.tar.gz
nthash-04efc9ddd7b94ed610728ac511ff76ce188031ab.tar.zst
update Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d507b28..e89dd9b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@
CC := gcc
ECHO := echo
GREP := grep
+INSTALL := install
+RM := rm
CFLAGS += -O2 -Wall -Werror
CFLAGS += $(shell pkg-config --cflags --libs nettle)
VERSION = $(shell git describe --tags --long)
@@ -14,5 +16,8 @@ check:
$(ECHO) -n "testing123" | ./nthash | \
$(GREP) '^3e 67 8b 26 6d 1d 44 9e 53 1e 92 be c3 3b 6d 27$$'
+install:
+ $(INSTALL) -D -m0755 nthash $(DESTDIR)/usr/bin/nthash
+
clean:
- /bin/rm -f *.o *~ nthash
+ $(RM) -f *.o *~ nthash