aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-07-03 12:58:52 +0200
committerLoïc Hoguin <[email protected]>2015-07-04 00:44:38 +0200
commit2f49c09aea91884c82d3a33fe0174ff3b093e846 (patch)
treec2c2e6094b5f1cdb42ded05b4869980ad443850e /core/deps.mk
parent17aa621b6d27216de4610928ebc1ba19dd9d553c (diff)
downloaderlang.mk-2f49c09aea91884c82d3a33fe0174ff3b093e846.tar.gz
erlang.mk-2f49c09aea91884c82d3a33fe0174ff3b093e846.tar.bz2
erlang.mk-2f49c09aea91884c82d3a33fe0174ff3b093e846.zip
Allow changing template whitespace
By default templates use tabs. Unfortunately there are misguided heretics who prefer spaces. Bummer. Two variables are introduced: * SP=<number> can be set to use <number> spaces per indentation level. * WS=<string> can be set to use <string> for each indentation level. Most users will just want to use SP, for example: make new t=gen_server n=my_server SP=4 Note that people who want tabs don't have to do anything; tabs are still the default. WS is reserved for advanced users. Normal Make rules apply: all whitespaces are trimmed. To specify 4 spaces using WS, you can do the following: make new t=gen_server n=my_server WS='$(empty) $(empty)' Ugly, right? So just use SP. Finally, SP and WS can be put in your Makefile directly. In fact, erlang.mk will automatically add SP to a newly created project if it was used during creation. For example: make -f erlang.mk bootstrap SP=2 So in time we should only need to make a note in the docs at project creation time, as there is very little value after that point.
Diffstat (limited to 'core/deps.mk')
0 files changed, 0 insertions, 0 deletions