This generates a directory suitable for use with the priv-cache
closure. Nothing uses it yet.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
/build
test-example/*.key
+test-example/*.privkeys
test-example/sites.conf
test-example/bogus-setup-request
build-stamp
&DEPS += test-example/sites.conf
&DEPS += test-example/inside.key
&DEPS += test-example/outside.key
+&DEPS += test-example/all-privkeys
&:include test-common.sd.mk
&sites.conf: $(src)/make-secnet-sites &^/sites &/Dir.mk
$(src)/make-secnet-sites &^/sites $@
+define privkey
+&/$1.privkeys/priv.$2: &/$3
+ mkdir -p $$(dir $$@) && cp $$< $$@.tmp && mv -f $$@.tmp $$@
+&all-privkeys:: &/$1.privkeys/priv.$2
+&clean::
+ rm -rf &/$1.privkeys
+endef
+
+$(eval $(call privkey,outside,0000000000,outside.key))
+
&CLEAN += *.new