aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-12-09 18:33:35 +0100
committerMattias Andrée <maandree@kth.se>2017-12-09 18:33:35 +0100
commit3479292b9148428cca518f884263d7bf9f80b466 (patch)
treea63f74153854a9ec12b048e1267990c9c8d94abb
parentm man (diff)
downloadtimeprefix-2.tar.gz
timeprefix-2.tar.bz2
timeprefix-2.tar.xz
makefile: add check2
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fab5f8d..cb36b2c 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,10 @@ timeprefix: timeprefix.o
.c.o:
$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS)
+check: timeprefix
+ test "$$(printf '%s\n' a b c d e | ./timeprefix | sed 's/[0-9]/0/g' | md5sum | tr -Cd '[:xdigit:]\n')" \
+ = "3f1efed82f846e18973bd016fe5aeba4"
+
install: timeprefix
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/timeprefix"
@@ -30,4 +34,4 @@ clean:
.SUFFIXES:
.SUFFIXES: .o .c
-.PHONY: all install uninstall clean
+.PHONY: all check install uninstall clean