Sample-Makefile 506 B

1234567891011121314151617181920
  1. all: ../approved-routers
  2. update:
  3. wget -q -O - http://tor.noreply.org/tor/status-vote/current/consensus | \
  4. ./process-consensus
  5. .PHONY: approved-routers-auto
  6. approved-routers-auto:
  7. ./build-approved-routers > "$@"
  8. .INTERMEDIATE: approved-routers
  9. approved-routers: approved-routers-auto /etc/tor/approved-routers
  10. cat $^ > "$@"
  11. ../approved-routers: approved-routers
  12. if ! diff -q "$<" "$@"; then \
  13. mv "$<" "$@" &&\
  14. (! [ -e /var/run/tor/tor.pid ] || kill -HUP `cat /var/run/tor/tor.pid`) ; \
  15. fi