20 lines
505 B
Makefile
20 lines
505 B
Makefile
|
|
||
|
PARTS= root server client
|
||
|
KEYS = $(addprefix certs/,$(addsuffix .key,$(PARTS)))
|
||
|
CERTS= $(addprefix certs/,$(addsuffix .pem,$(PARTS)))
|
||
|
|
||
|
all: certs/ $(KEYS) $(CERTS)
|
||
|
|
||
|
certs/:
|
||
|
-mkdir certs
|
||
|
|
||
|
certs/root.pem certs/root.key &:
|
||
|
go run generate.go root certs/root
|
||
|
|
||
|
certs/server.pem certs/server.key &: certs/root.pem certs/root.key
|
||
|
go run generate.go server certs/server certs/root
|
||
|
|
||
|
certs/client.pem certs/client.key &: certs/root.pem certs/root.key
|
||
|
go run generate.go client certs/client certs/root
|
||
|
|