blob: a0f552142beef36ebbf00d2d1f63ec49d87fea41 (
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 = result/stats.txt
result/stats.txt: $(ECHOLOT_BASE)/results/thesaurus/index.txt $(ECHOLOT_BASE)/data $(ECHOLOT_BASE)/data/*
[ -d result ] || mkdir result
[ -d tmp ] || mkdir tmp
if [ -e $@ ] ; then \
mod=`stat -c '%Y' $@`; \
else \
mod=0; \
fi; \
now=`date +'%s'`; \
if [ $$(( $$now - $$mod )) -gt $(LATENCY_AGE) ]; then \
$(top_srcdir)/bin/latency-graphs $(ECHOLOT_BASE); \
else \
echo "** Skipping Latency build"; \
fi
echo "ExpiresActive On" > result/.htaccess
echo "ExpiresByType image/png \"modification plus $(LATENCY_AGE) seconds\"" >> result/.htaccess
echo "ExpiresByType text/html \"modification plus $(LATENCY_AGE) seconds\"" >> result/.htaccess
clean:
rm -rf result tmp
install-data-local: result/stats.txt
[ -d $(docdir) ] || mkdir $(docdir)
cp -a result/*.png $(docdir)
cp -a result/*.html $(docdir)
cp -a result/.htaccess $(docdir)
uninstall-local:
rm -f $(docdir)/*.png
rm -f $(docdir)/*.html
rm -f $(docdir)/.htaccess
|