commit cb82f578cadb97cdfc79b7e8e160a7a598265a73
parent 76d0af5599554d11f104d582cdac8fbaa8569fcc
Author: Mattias Andrée <maandree@kth.se>
Date: Fri, 4 Mar 2016 23:57:16 +0100
Makefile: add check rule
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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