SUBDIRS = based_in = htdocs include $(top_srcdir)/Makefile.common doc_DATA = result/index.html: $(TOR_RUNNING_ROUTERS_BASE)/result/index.html # rm -rf result # cp -a $(TOR_RUNNING_ROUTERS_BASE)/result result # rsync -ra --delete $(TOR_RUNNING_ROUTERS_BASE)/result/ result rm -rf result.new cp -al $(TOR_RUNNING_ROUTERS_BASE)/result/ result.new mv result result.old mv result.new result rm -rf result.old 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) # find result -name '*.png' -type f | xargs --no-run-if-empty cp --target-directory="$(docdir)" # find result -name '*.html' -type f | xargs --no-run-if-empty cp --target-directory="$(docdir)" # cp -a result/.htaccess $(docdir) # rsync -r --delete result/ $(docdir)/ rm -rf $(docdir).new/ if ! [ -e $(docdir)/index.html ] || \ [ "$$(stat -c '%i' result/index.html )" -ne "$$(stat -c '%i' $(docdir)/index.html )" ]; then \ cp -al result/ $(docdir).new/ && \ mv $(docdir) $(docdir).old && \ mv $(docdir).new $(docdir) && \ rm -rf $(docdir).old/; \ fi uninstall-local: rm -f $(docdir)/*.png rm -f $(docdir)/*.html rm -f $(docdir)/.htaccess