go-cert-thing/Makefile

20 lines
505 B
Makefile
Raw Normal View History

2024-06-05 14:01:17 -07:00
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