summaryrefslogtreecommitdiff
path: root/web/tls/Makefile.am
blob: 71e311c52468af7b134f2475a061dabcf9e4f95f (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
38
39
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 -a cert-*.txt $(docdir)
	! [ -f .htaccess ] || cp -a .htaccess $(docdir)

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