Makefile 457 B

12345678910111213141516171819
  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 ${PWD}/rules /etc/dnsmasq.d
  14. rm -ri /etc/scripts
  15. ln -s ${PWD}/scripts /etc