13 lines
285 B
Makefile
13 lines
285 B
Makefile
#!/usr/bin/make -f
|
|
|
|
intermediate_ca_certs := 1-CA-Internal.crt
|
|
|
|
certs := $(patsubst %.pem,%.crt,$(sort $(wildcard *.pem)))
|
|
target_certs := $(patsubst %.crt,%.chain.crt,$(certs))
|
|
|
|
.PHONY: all
|
|
all: $(target_certs)
|
|
|
|
%.chain.crt: %.crt $(intermediate_ca_certs)
|
|
cat $+ | tee $@ >/dev/null
|