Skip to content
Snippets Groups Projects
Commit c408d926 authored by nimrod's avatar nimrod
Browse files

- Added lint target, updated documentation.

parent dbdbc2be
No related branches found
No related tags found
No related merge requests found
.PHONY: install clean test
.PHONY: install clean test lint
install:
cp ssl-ca /usr/local/bin/ssl-ca
......@@ -8,7 +8,10 @@ clean:
if [ -f .server.pid ]; then kill "$$(cat .server.pid)"; fi
rm -rf openssl.cnf certs keys CA.key CA.crt CA.p12 CA.srl .server.pid
test: clean
lint:
/bin/sh -en ssl-ca
test: clean lint
./ssl-ca init
test "$$(openssl rsa -noout -check -in CA.key)" = "RSA key ok"
test "$$(openssl verify -CAfile CA.crt CA.crt)" = "CA.crt: OK"
......
......@@ -68,8 +68,9 @@ other cert on the internet.
Development
-----------
For easing devlopment :code:`make test` and :code:`make clean` are also provided
(it's recommended to add :code:`make test` to the pre-push git hook).
To ease development :code:`make clean`, :code:`make lint` and :code:`make test`
are available. It's recommended to add :code:`make lint` and :code:`make test`
to to your Git pre-commit and pre-push hooks accourdingly.
License
-------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment