From 614b26aed3bc3cd1385cf6dffc10a06f41506e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 31 Jul 2014 19:32:41 +0200 Subject: Add command-line help to the bootstrap plugin --- plugins/bootstrap.mk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 +# 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) -- cgit v1.2.3