summaryrefslogtreecommitdiff
path: root/web/tor-running-routers/Makefile.am
blob: e31396ab1aa5eb234c18ff3b301491cab633aba8 (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
SUBDIRS = 

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

doc_DATA = result/index.html

result/index.html: $(TOR_RUNNING_ROUTERS_BASE)/result/index.html
	rm -rf result
	cp -a $(TOR_RUNNING_ROUTERS_BASE)/result result

	echo "ExpiresActive On" > result/.htaccess
	echo "ExpiresByType image/png \"modification plus 2 hours 20 minutes\"" >> result/.htaccess
	echo "ExpiresByType text/html \"modification plus 2 hours 20 minutes\"" >> result/.htaccess

clean:
	rm -rf result

install-data-local: result/index.html
	[ -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