More forgiving way of making CA depend on index && serial
authorAlan T. DeKok <aland@freeradius.org>
Wed, 23 Jan 2013 20:08:34 +0000 (15:08 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 23 Jan 2013 20:28:16 +0000 (15:28 -0500)
If they don't exist, we create them.
If they do exist, we don't care if they changed.

raddb/certs/Makefile

index b7d5c70..51667f9 100644 (file)
@@ -51,7 +51,9 @@ dh:
 #  Create a new self-signed CA certificate
 #
 ######################################################################
-ca.key ca.pem: ca.cnf index.txt serial
+ca.key ca.pem: ca.cnf
+       @[ -f index.txt ] || $(MAKE) index.txt
+       @[ -f serial ] || $(MAKE) serial
        openssl req -new -x509 -keyout ca.key -out ca.pem \
                -days $(CA_DEFAULT_DAYS) -config ./ca.cnf