DNS data
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
699 B

  1. .PHONY: all make_recursive clean clean_recursive restart
  2. DIRS=$(wildcard */)
  3. all: make_recursive
  4. restart:
  5. @if [ -e /service/tinydns ]; then \
  6. for x in runsvctrl sv; do \
  7. if [ -x /command/$$x ]; then \
  8. /command/$$x h /service/tinydns; \
  9. fi; \
  10. done ; \
  11. fi
  12. clean: clean_recursive
  13. make_recursive:
  14. @for x in $(DIRS); do if [ -d $$x ]; then make -C $$x; fi; done
  15. clean_recursive:
  16. @for x in $(DIRS); do if [ -d $$x ]; then make -C $$x clean; fi; done
  17. data.cdb: $(foreach dir,$(DIRS),$(wildcard $(dir)*.zone)) Makefile
  18. @if [ -n "$(filter-out Makefile,$^)" ]; then \
  19. echo " [tinydns-data] $(filter-out Makefile,$^)"; \
  20. /opt/djbdns/bin/tinydns-data $(filter-out Makefile,$^); \
  21. fi