]> git.codecow.com Git - Monocypher.git/commitdiff
Added a `check` target to the makefile, that means the same as `test`
authorLoup Vaillant <loup@loup-vaillant.fr>
Mon, 25 Sep 2017 20:11:15 +0000 (22:11 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Mon, 25 Sep 2017 20:11:15 +0000 (22:11 +0200)
Automake specifies that `make check` runs the test suite.  We should
respect such conventions.  `make test` still works ("test" is a good
name for such a target).

makefile

index 9a65041e69e80042c62771c387c56b9aa9a499a1..4d63e69a95ad2b286881a3473d1b3c1b4b200b38 100644 (file)
--- a/makefile
+++ b/makefile
@@ -5,7 +5,10 @@ PREFIX=usr/local
 PKGCONFIG=$(DESTDIR)/$(PREFIX)/lib/pkgconfig
 MAN_DIR=$(DESTDIR)/$(PREFIX)/share/man/man3
 
-.PHONY: all install-doc library static-library dynamic-library clean install test speed
+.PHONY: all library static-library dynamic-library \
+        install install-doc                        \
+        check test speed                           \
+        clean
 
 all    : library
 install: library src/monocypher.h install-doc
@@ -40,6 +43,7 @@ clean:
        rm -rf lib/
        rm -f  *.out
 
+check: test
 test: test.out
        ./test.out