Merge 0.8->trunk
[prosody.git] / certs / Makefile
index 17b9dfa9c16d805296cebe171da9644228653bbd..c5e4294c7d7130e22e7f485a87944c3a5331c129 100644 (file)
@@ -11,6 +11,8 @@ keysize=2048
 # signing request that you can submit to a CA, or `make yourhost.cert`
 # to generate a self signed certificate.
 
+.PRECIOUS: %.cnf %.key
+
 # To request a cert
 %.csr: %.cnf %.key
        openssl req -new -key $(lastword $^) -out $@ -utf8 -config $(firstword $^)
@@ -25,4 +27,4 @@ keysize=2048
 
 %.key:
        openssl genrsa $(keysize) > $@
-       @chmod 400 -c $@
+       @chmod 400 $@