diff options
author | Loïc Hoguin <[email protected]> | 2014-07-31 19:32:41 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-07-31 19:32:41 +0200 |
commit | 614b26aed3bc3cd1385cf6dffc10a06f41506e14 (patch) | |
tree | 57ed11c5e280fe80be333d5e13da7e3fe7081a0b | |
parent | 3a3cc1e9e513a4e578b6d5d5d25534986a59715d (diff) | |
download | erlang.mk-614b26aed3bc3cd1385cf6dffc10a06f41506e14.tar.gz erlang.mk-614b26aed3bc3cd1385cf6dffc10a06f41506e14.tar.bz2 erlang.mk-614b26aed3bc3cd1385cf6dffc10a06f41506e14.zip |
Add command-line help to the bootstrap plugin
-rw-r--r-- | plugins/bootstrap.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/bootstrap.mk b/plugins/bootstrap.mk index 214ccd3..7733f0e 100644 --- a/plugins/bootstrap.mk +++ b/plugins/bootstrap.mk @@ -1,4 +1,21 @@ +# Copyright (c) 2014, Loïc Hoguin <[email protected]> +# This file is part of erlang.mk and subject to the terms of the ISC License. + +.PHONY: bootstrap bootstrap-lib bootstrap-rel new list-templates + +# Core targets. + +help:: + @printf "%s\n" "" \ + "Bootstrap targets:" \ + " bootstrap Generate a skeleton of an OTP application" \ + " bootstrap-lib Generate a skeleton of an OTP library" \ + " bootstrap-rel Generate the files needed to build a release" \ + " new t=TPL n=NAME Generate a module NAME based on the template TPL" \ + " bootstrap-lib List available templates" + # Bootstrap templates. + bs_appsrc = "{application, $(PROJECT), [" \ " {description, \"\"}," \ " {vsn, \"0.1.0\"}," \ @@ -206,6 +223,8 @@ tpl_ranch_protocol = "-module($(n))." \ "loop(State) ->" \ " loop(State)." +# Plugin-specific targets. + bootstrap: ifneq ($(wildcard src/),) $(error Error: src/ directory already exists) |