summaryrefslogtreecommitdiff
path: root/web/tls/Makefile.am
blob: c18b2afaf32ba932de95e17ff92a04fece287bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
SUBDIRS = 

based_in = htdocs
include $(top_srcdir)/Makefile.common

doc_DATA = index.html


addresses: $(ECHOLOT_BASE)/results/mlist2.txt $(ECHOLOT_BASE)/results/rlist2.txt
	cat $(ECHOLOT_BASE)/results/mlist2.txt $(ECHOLOT_BASE)/results/rlist2.txt > addresses

tls-result: addresses
	if [ -e $@ ] ; then \
		mod=`stat -c '%Y' $@`; \
	else \
		mod=0; \
	fi; \
	now=`date +'%s'`; \
	if [ $$(( $$now - $$mod )) -gt $(TLS_AGE) ]; then \
		$(top_srcdir)/bin/tls-check < $< > $@; \
	else \
		echo "** Skipping TLS build"; \
	fi

index.html: tls-result
	rm -f cert-*.txt;
	$(top_srcdir)/bin/tls2html < $< > $@;

clean:
	rm -f tls-result index.html addresses cert-*.txt addresses

install-data-local: index.html
	[ -d $(docdir) ] || mkdir $(docdir)
	cp cert-*.txt $(docdir)

uninstall-local:
	rm -f $(docdir)/cert-*.txt