aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-04 23:57:16 +0100
committerMattias Andrée <maandree@kth.se>2016-03-04 23:57:16 +0100
commitcb82f578cadb97cdfc79b7e8e160a7a598265a73 (patch)
tree9f41e0b9b7b5024910f81cd2070179aa7cd5201c /Makefile
parentClean up, add zerror and zperror, fix bugs and add more tests (diff)
downloadlibzahl-cb82f578cadb97cdfc79b7e8e160a7a598265a73.tar.gz
libzahl-cb82f578cadb97cdfc79b7e8e160a7a598265a73.tar.bz2
libzahl-cb82f578cadb97cdfc79b7e8e160a7a598265a73.tar.xz
Makefile: add check rule
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ee672f0..1d86a86 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,10 @@ libzahl.a: $(OBJ)
test: test.c libzahl.a
$(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) -o $@ $^
+check: test
+ ./test
+
clean:
-rm -- *.o *.su *.a *.so test 2>/dev/null
-.PHONY: all clean
+.PHONY: all check clean