aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-10-15 15:27:47 +0200
committerMattias Andrée <maandree@kth.se>2017-10-15 15:27:47 +0200
commitec16755f60139245de7f3ba7fa7ac32c444cbd7a (patch)
tree84d427f19a9aea2dd9ab631cb7b9ce7f4b1f2d1b /Makefile
parentImprove the code (diff)
downloadsha3sum-ec16755f60139245de7f3ba7fa7ac32c444cbd7a.tar.gz
sha3sum-ec16755f60139245de7f3ba7fa7ac32c444cbd7a.tar.bz2
sha3sum-ec16755f60139245de7f3ba7fa7ac32c444cbd7a.tar.xz
Add test
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ca8a99d..3e622cf 100644
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,9 @@ rawshake%sum.c:
shake%sum.c:
printf '%s\n' '#include "common.h"' 'SHAKE_MAIN($*)' > $@
+check:
+ ./test
+
install:
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
@@ -76,8 +79,8 @@ uninstall:
-rmdir -- "$(DESTDIR)$(PREFIX)/share/licenses/sha3sum"
clean:
- -rm -r -- $(MAN1) $(BIN) keccak-*sum.c sha3-*sum.c rawshake*sum.c shake*sum.c
+ -rm -r -- $(MAN1) $(BIN) keccak-*sum.c sha3-*sum.c rawshake*sum.c shake*sum.c .testdir
.SUFFIXES:
-.PHONY: all install uninstall clean
+.PHONY: all check install uninstall clean