From c408d9269db39e2b134896792db5bcfa1e1ca0f1 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Thu, 3 Mar 2016 11:06:32 +0200
Subject: [PATCH] - Added lint target, updated documentation.

---
 Makefile   | 7 +++++--
 README.rst | 5 +++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 69417bc..fe7445b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.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"
diff --git a/README.rst b/README.rst
index 944db71..1a5d6ee 100644
--- a/README.rst
+++ b/README.rst
@@ -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
 -------
-- 
GitLab