diff options
author | Loïc Hoguin <[email protected]> | 2014-05-28 22:07:54 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-05-28 22:17:51 +0200 |
commit | 58b99e7f457bc056e91d2d1721cbb65fcd517afe (patch) | |
tree | 16f20657dcb4f1713ff3bfc02de875b85e7875c4 /plugins/edoc.mk | |
parent | b47d3f4c3e097aa28a08f72931d2ce8c50039681 (diff) | |
download | erlang.mk-58b99e7f457bc056e91d2d1721cbb65fcd517afe.tar.gz erlang.mk-58b99e7f457bc056e91d2d1721cbb65fcd517afe.tar.bz2 erlang.mk-58b99e7f457bc056e91d2d1721cbb65fcd517afe.zip |
Cut erlang.mk into many small components
* The build.config says what gets into the generated erlang.mk.
* The default erlang.mk in the repository hasn't changed yet.
* Clean targets were separated into "clean" and "distclean".
* The "help" target was added to display some help message.
I probably broke a couple things...
Diffstat (limited to 'plugins/edoc.mk')
-rw-r--r-- | plugins/edoc.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/edoc.mk b/plugins/edoc.mk new file mode 100644 index 0000000..5249d08 --- /dev/null +++ b/plugins/edoc.mk @@ -0,0 +1,21 @@ +# Copyright (c) 2013-2014, Loïc Hoguin <[email protected]> +# This file is part of erlang.mk and subject to the terms of the ISC License. + +.PHONY: distclean-edoc + +# Configuration. + +EDOC_OPTS ?= + +# Core targets. + +docs:: distclean-edoc + $(gen_verbose) erl -noshell \ + -eval 'edoc:application($(PROJECT), ".", [$(EDOC_OPTS)]), init:stop().' + +distclean:: distclean-edoc + +# Plugin-specific targets. + +distclean-edoc: + $(gen_verbose) rm -f doc/*.css doc/*.html doc/*.png doc/edoc-info |