Makefile 422 B

123456789101112131415161718
  1. build:
  2. @echo "repo/dns/update/install"
  3. repo:
  4. git clone https://github.com/felixonmars/dnsmasq-china-list --depth=1
  5. dns:
  6. cd dnsmasq-china-list && make SERVER=127.0.0.1#5353 dnsmasq
  7. mv dnsmasq-china-list/*.dnsmasq.conf rules
  8. update:
  9. cd dnsmasq-china-list && git pull
  10. @echo "Updated. Please run 'make run' to generate new config file."
  11. install:
  12. rm -ri /etc/dnsmasq.d
  13. ln -s rules /etc/dnsmasq.d
  14. ln -s scripts /etc