all: index.html style.css
%: %.go
go build $<
index.html: tls.html.part crtsh.html.part diff.html.part
crtsh.pem: crtsh-getcerts config-domains.txt NET-crtsh
./crtsh-getcerts $$(cat config-domains.txt) > $@
tls.pem: tls-getcerts config-sockets.txt NET-tls
./tls-getcerts $$(cat config-sockets.txt) > $@
diff.pem: diff tls.pem crtsh.pem
./diff tls.pem crtsh.pem > $@
tls.html.part crtsh.html.part diff.html.part: %.html.part: %.pem %-pem2html
./$*-pem2html < $< > $@
%: %.gen
./$< $(filter-out $<,$^) > $@
%.css: %.scss
scss $< $@
NET-%:
date > $@
.DELETE_ON_ERROR:
.SECONDARY: