all: index.html
all: crtsh.html
all: tls.html
all: diff.html
%: %.go
go build $<
crtsh.pem: crtsh-getcerts config-domains.txt NET-crtsh
./crtsh-getcerts $$(cat config-domains.txt) > $@
crtsh.html: %.html: %.pem crtsh-pem2html
./crtsh-pem2html < $< > $@
tls.pem: tls-getcerts config-sockets.txt NET-tls
./tls-getcerts $$(cat config-sockets.txt) > $@
tls.html: %.html: %.pem tls-pem2html
./tls-pem2html < $< > $@
diff.html: diff tls.pem crtsh.pem
./diff tls.pem crtsh.pem > $@
NET-%:
date > $@
.DELETE_ON_ERROR:
.SECONDARY: