Commit c408d926 authored by nimrod's avatar nimrod
Browse files

- Added lint target, updated documentation.

parent dbdbc2be
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
.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"
+3 −2
Original line number Diff line number Diff line
@@ -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
-------