diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 58 |
1 files changed, 38 insertions, 20 deletions
@@ -1,30 +1,48 @@ -all: index.html style.css jarmon-style/jquerytools.tabs.tabs-no-images.css jarmon-style/style.css +all: public/index.html +all: public/style.css +all: public/jarmon-style/jquerytools.tabs.tabs-no-images.css +all: public/jarmon-style/style.css -%: %.go util $(wildcard util/*.go) - go build $< +NET-%: + date > $@ -index.html: tls.html.part crtsh.html.part diff.html.part jarmon.html.in +.DELETE_ON_ERROR: +.SECONDARY: -crtsh.pem: crtsh-getcerts config-domains.txt NET-crtsh - ./crtsh-getcerts $$(sed 's/#.*//' config-domains.txt) > $@ +# bin/ -tls.pem: tls-getcerts config-sockets.txt NET-tls - ./tls-getcerts $$(sed 's/#.*//' config-sockets.txt) > $@ +bin/%: bin-src/%.go bin-src/util $(wildcard bin-src/util/*.go) + go build -o $@ $< -diff.pem: diff tls.pem crtsh.pem - ./diff tls.pem crtsh.pem > $@ +bin/%: bin-src/% + @mkdir -p '$(@D)' + ln -srTf '$<' '$@' -tls.html.part crtsh.html.part diff.html.part: %.html.part: %.pem %-pem2html - ./$*-pem2html < $< > $@ +# public/ -%: %.gen - ./$< $(filter-out $<,$^) > $@ +public/%: public-src/% + @mkdir -p '$(@D)' + ln -srTf '$<' '$@' -%.css: %.scss - scss $< $@ +public/index.html: public/tls.html.part public/crtsh.html.part public/diff.html.part public/jarmon.html.in -NET-%: - date > $@ +public/crtsh.pem: bin/crtsh-getcerts cfg/domains.txt NET-crtsh + @mkdir -p '$(@D)' + bin/crtsh-getcerts $$(sed 's/#.*//' cfg/domains.txt) > $@ -.DELETE_ON_ERROR: -.SECONDARY: +public/tls.pem: bin/tls-getcerts cfg/sockets.txt NET-tls + @mkdir -p '$(@D)' + bin/tls-getcerts $$(sed 's/#.*//' cfg/sockets.txt) > $@ + +public/diff.pem: bin/pem-diff public/tls.pem public/crtsh.pem + $^ > $@ + +public/tls.html.part public/crtsh.html.part public/diff.html.part: \ +public/%.html.part: public/%.pem bin/%-pem2html + bin/$*-pem2html < $< > $@ + +public/%: public/%.gen + $^ > $@ + +public/%.css: public/%.scss + scss $< $@ |