SUBDIRS = based_in = htdocs include $(top_srcdir)/Makefile.common doc_DATA = result/index.html result/index.html: $(ECHOLOT_BASE)/results/thesaurus/index.txt $(ECHOLOT_BASE)/data $(ECHOLOT_BASE)/data/* [ -d result ] || mkdir result if [ -e $@ ] ; then \ mod=`stat -c '%Y' $@`; \ else \ mod=0; \ fi; \ now=`date +'%s'`; \ if [ $$(( $$now - $$mod )) -gt $(LOAD_AGE) ]; then \ $(top_srcdir)/bin/load-graphs $(LOAD_RRD_DIR); \ else \ echo "** Skipping Load build"; \ fi echo "ExpiresActive On" > result/.htaccess echo "ExpiresByType image/png \"modification plus $(LOAD_AGE) seconds\"" >> result/.htaccess echo "ExpiresByType text/html \"modification plus $(LOAD_AGE) seconds\"" >> 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