chiark / gitweb /
test-example: Add the inside.key to the privcache too
[secnet.git] / test-example / Dir.sd.mk
1 &TARGETS += & sites.conf inside.key outside.key all-privkeys
2
3 include common.make
4
5 &/%.key: &^/%.key.b64
6         base64 -d <$< >$@.new && mv -f $@.new $@
7
8 &sites.conf: $(src)/make-secnet-sites &^/sites &/Dir.mk
9         $(src)/make-secnet-sites &^/sites $@
10
11 define privkey
12 &/$1.privkeys/priv.$2: &/$3
13         mkdir -p $$(dir $$@) && cp $$< $$@.tmp && mv -f $$@.tmp $$@
14 &all-privkeys:: &/$1.privkeys/priv.$2
15 &clean::
16         rm -rf &/$1.privkeys
17 endef
18
19 $(eval $(call privkey,outside,0000000000,outside.key))
20 $(eval $(call privkey,inside,0000000000,inside.key))
21
22 &CLEAN += *.new