diff options
author | Loïc Hoguin <[email protected]> | 2015-05-07 21:00:53 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-05-07 21:00:53 +0300 |
commit | 030041dc06f80371aecc929e43fdf870d1f09973 (patch) | |
tree | 91a1eb56f954f8598a679d8589a6c7c494fc15a8 /core | |
parent | 49ffed442a9e01e79e3561da1f92f77bad1d38cd (diff) | |
download | erlang.mk-030041dc06f80371aecc929e43fdf870d1f09973.tar.gz erlang.mk-030041dc06f80371aecc929e43fdf870d1f09973.tar.bz2 erlang.mk-030041dc06f80371aecc929e43fdf870d1f09973.zip |
Add Asciidoc documentation support
Diffstat (limited to 'core')
-rw-r--r-- | core/core.mk | 21 | ||||
-rw-r--r-- | core/docs.mk | 15 |
2 files changed, 26 insertions, 10 deletions
diff --git a/core/core.mk b/core/core.mk index fdef354..0de45fd 100644 --- a/core/core.mk +++ b/core/core.mk @@ -12,7 +12,7 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.PHONY: all deps app rel docs tests clean distclean help erlang-mk +.PHONY: all deps app rel docs install-docs tests clean distclean help erlang-mk ERLANG_MK_VERSION = 1 @@ -63,15 +63,16 @@ help:: "Usage: [V=1] make [-jNUM] [target]" \ "" \ "Core targets:" \ - " all Run deps, app and rel targets in that order" \ - " deps Fetch dependencies (if needed) and compile them" \ - " app Compile the project" \ - " rel Build a release for this project, if applicable" \ - " docs Build the documentation for this project" \ - " tests Run the tests for this project" \ - " clean Delete temporary and output files from most targets" \ - " distclean Delete all temporary and output files" \ - " help Display this help and exit" \ + " all Run deps, app and rel targets in that order" \ + " deps Fetch dependencies (if needed) and compile them" \ + " app Compile the project" \ + " rel Build a release for this project, if applicable" \ + " docs Build the documentation for this project" \ + " install-docs Install the man pages for this project" \ + " tests Run the tests for this project" \ + " clean Delete temporary and output files from most targets" \ + " distclean Delete all temporary and output files" \ + " help Display this help and exit" \ "" \ "The target clean only removes files that are commonly removed." \ "Dependencies and releases are left untouched." \ diff --git a/core/docs.mk b/core/docs.mk new file mode 100644 index 0000000..9637d32 --- /dev/null +++ b/core/docs.mk @@ -0,0 +1,15 @@ +# Copyright (c) 2015, Viktor Söderqvist <[email protected]> +# This file is part of erlang.mk and subject to the terms of the ISC License. + +.PHONY: docs-deps + +# Configuration. + +ALL_DOC_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(DOC_DEPS)) + +# Targets. + +$(foreach dep,$(DOC_DEPS),$(eval $(call dep_target,$(dep)))) + +doc-deps: $(ALL_DOC_DEPS_DIRS) + @for dep in $(ALL_DOC_DEPS_DIRS) ; do $(MAKE) -C $$dep; done |