edoc.mk 769 B

12345678910111213141516171819202122232425262728
  1. # Copyright (c) 2013-2015, Loïc Hoguin <essen@ninenines.eu>
  2. # Copyright (c) 2015, Viktor Söderqvist <viktor@zuiderkwast.se>
  3. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4. .PHONY: distclean-edoc build-doc-deps
  5. # Configuration.
  6. EDOC_OPTS ?=
  7. # Core targets.
  8. docs:: distclean-edoc build-doc-deps
  9. $(gen_verbose) $(ERL) -eval 'edoc:application($(PROJECT), ".", [$(EDOC_OPTS)]), halt().'
  10. distclean:: distclean-edoc
  11. # Plugin-specific targets.
  12. DOC_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(DOC_DEPS))
  13. $(foreach dep,$(DOC_DEPS),$(eval $(call dep_target,$(dep))))
  14. build-doc-deps: $(DOC_DEPS_DIRS)
  15. @for dep in $(DOC_DEPS_DIRS) ; do $(MAKE) -C $$dep; done
  16. distclean-edoc:
  17. $(gen_verbose) rm -f doc/*.css doc/*.html doc/*.png doc/edoc-info