diff options
author | Mattias Andrée <maandree@kth.se> | 2017-12-09 18:33:35 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-12-09 18:33:35 +0100 |
commit | 3479292b9148428cca518f884263d7bf9f80b466 (patch) | |
tree | a63f74153854a9ec12b048e1267990c9c8d94abb | |
parent | m man (diff) | |
download | timeprefix-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-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |