2019独角兽企业重金招聘Python工程师标准>>>

原文链接  https://erlang.mk/guide/updating.html

Chapter 4. Updating Erlang.mk

This chapter describes how to update the erlang.mk file in your repository.

本章介绍如何更新存储库中的erlang.mk文件。

4.1. Initial bootstrap

4.1. 初始引导

The first time you use Erlang.mk, it will bootstrap itself. It always uses the most recent version for this, so you don’t have to update after creating your project.

当你最初创建项目并引入Erlang.mk后执行 make,Erlang.mk会自动引导,这时总是使用最新的Erlang.mk版本,所以你不必更新Erlang.mk。

4.2. Updating

4.2. 更新

Later on though, updating becomes a necessity. Erlang.mk developers and contributors relentlessly improve the project and add new features; it would be a waste not to benefit from this.

但是以后的更新却不可避免。Erlang.mk开发人员和贡献者不懈地改进该项目并给它添加新功能,如果不从中受益,这些工作就成了一种浪费。

That’s why updating Erlang.mk is so simple. All you need to do is to call make erlang-mk:

所以,更新Erlang.mk被设计的非常简单。你所需要做的仅仅只是调用make erlang-mk:

$ make erlang-mk
git clone https://github.com/ninenines/erlang.mk .erlang.mk.build
Cloning into '.erlang.mk.build'...
remote: Counting objects: 4035, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 4035 (delta 8), reused 4 (delta 4), pack-reused 4019
Receiving objects: 100% (4035/4035), 1.10 MiB | 1000.00 KiB/s, done.
Resolving deltas: 100% (2442/2442), done.
Checking connectivity... done.
if [ -f build.config ]; then cp build.config .erlang.mk.build; fi
cd .erlang.mk.build && make
make[1]: Entering directory '/home/essen/tmp/emkg/hello_joe/.erlang.mk.build'
awk 'FNR==1 && NR!=1{print ""}1' core/core.mk index/*.mk core/index.mk core/deps.mk plugins/protobuffs.mk core/erlc.mk core/docs.mk core/test.mk plugins/asciidoc.mk plugins/bootstrap.mk plugins/c_src.mk plugins/ci.mk plugins/ct.mk plugins/dialyzer.mk plugins/edoc.mk plugins/elvis.mk plugins/erlydtl.mk plugins/escript.mk plugins/eunit.mk plugins/relx.mk plugins/shell.mk plugins/triq.mk plugins/xref.mk plugins/cover.mk \| sed 's/^ERLANG_MK_VERSION = .*/ERLANG_MK_VERSION = 1.2.0-642-gccd2b9f/' > erlang.mk
make[1]: Leaving directory '/home/essen/tmp/emkg/hello_joe/.erlang.mk.build'
cp .erlang.mk.build/erlang.mk ./erlang.mk
rm -rf .erlang.mk.build

All that’s left to do is to commit the file!

剩下要做的只是提交这些更新的文件!

Yep, it’s that easy.

是的,这很简单。

4.3. Customizing the build

4.3. 定制构建

Erlang.mk allows you to customize which components are to be included in the erlang.mk file. The WITHOUT variable allows you to remove components from the default Erlang.mk build. The build.config file lets you define exactly what goes in (including your own code!), and in what order.

Erlang.mk允许你对erlang.mk文件中包含的组件进行定制。 编译的时候,WITHOUT变量允许您从默认的Erlang.mk版本中删除组件。 build.config文件可以让你准确的定义编译所需引入的内容(包括你的代码!),以及它们引入的顺序。

The WITHOUT file contains the list of components to exclude from the build. For example, to exclude the package index and the EDoc plugin when bootstrapping your application:

WITHOUT项指定要从构建中排除的组件列表。例如,在引导应用程序构建时排除软件包索引和EDoc插件:

$ make -f erlang.mk bootstrap WITHOUT="index plugins/edoc"

The generated Erlang.mk will never include those components when you update it, until you change your mind and use the WITHOUT variable again when you upgrade:

当你在更新生成的Erlang.mk时,所有组件都会被更新,直到你改变主意再次使用WITHOUT变量来升级Erlang.mk:

$ make erlang-mk WITHOUT=index

The build.config file is automatically used when you bootstrap Erlang.mk or when you update it with make erlang-mk.

build.config文件会在你引导Erlang.mk或者当你使用 “make erlang-mk” 更新Erlang.mk时被自动使用。

The build.config file contains the list of all files that will be built into the resulting erlang.mk file. You can start from the most recent version and customize to your needs.

build.config文件包含

You can also name the file differently or put it in a separate folder by modifying the value for ERLANG_MK_BUILD_CONFIG. You can also tell Erlang.mk to use a different temporary directory by changing the ERLANG_MK_BUILD_DIR variable.

转载于:https://my.oschina.net/u/258912/blog/1601311

第4章 更新Erlang.mk相关推荐

  1. Visual C++ 2008入门经典 第二十一章更新数据源

    /* 第二十一章更新数据源 本章主要内容:1 数据库事务2 如何使用记录集对像更新数据库3 如何在更新操作中将数据从记录集传输到数据库4 如何更新表中的现有行5 如何添加新行到表中21.1 更新操作2 ...

  2. 索骥馆-OFFICE系列之《北风网Excel高端应用培训:多条件约束报表自动统计系统分析与制作》共4章更新完

    内容介绍: 本课程主要想与大家分享对EXCEL用系统的观念去理解,灵活应用其提供的函数及新增功能.达到工作环境的自动化,本课程通过一个常用的案例来说明相关的用法. 在以后的课程中讲解如何获得动态的数据 ...

  3. [52ABP实战系列] .NET CORE实战入门第三章更新了

    早安 各位道友好,.NET CORE入门视频的第三章也算录制完毕了.欢迎大家上传课网进行学习. 更新速度 大家也知道最近的社会新闻比较多.频繁发生404.关键字打不出来,我个人也在关注这些事件.导致精 ...

  4. 30 分钟学 Erlang

    30 分钟学 Erlang (一) Shawn_xiaoyu https://www.jianshu.com/p/b45eb9314d1e 本文写给谁看的? 那些已经有过至少一门编程语言基础,并且需要 ...

  5. Erlang/OTP并发编程实战

    <Erlang/OTP并发编程实战> 基本信息 原书名:Erlang and OTP in Action 作者: (美)洛根(Logan,M.) 梅里特(Merritt,E.) (瑞典) ...

  6. 自学golang【第一章:go语言基础知识】为什么要学习go语言?go语言与c语言的关系?go语言创始人?go语言的特性有哪些?go语言适合做什么?国内外有哪些企业或项目使用go语言?

    事先声明:本文部分内容参考了尹成的笔记,如果侵权请联系删除. 我是一名自学go语言的初学者,从今天开始我将会坚持更新go语言的相关知识,从入门到精通,如果大家有什么需要可以加我QQ:239479969 ...

  7. Erlang库 -- 有意思的库汇总

    抄自这里 首先,库存在的目的大致可分为: 1.提供便利 2.尽可能解决一些痛点 首先,我们先明确一下Erlang编程语言的一些痛点(伪痛点): 1,单进程问题 Erlang虚拟机属于抢占式调度,抢占式 ...

  8. 深入分析Android (build/core/*.mk脚本)

    深入分析Android (build/core/*.mk脚本) 文档简要整理Android的make脚本的内容.以供备忘和参考. 1.    Build Layers Build Layers描述的是 ...

  9. 【离散数学】第一章 —— 基础:逻辑和证明

    嗨喽,宝子们,好久没有更新了.首先声明,我绝对没有偷玩hhh,只是因为最近忙着写毕业论文,然后又重新温习离散数学,时间比较紧凑,这不就马不停蹄的来了嘛. 叮叮叮,这将是一个全新的专栏--<离散数 ...

  10. 第四章:缓冲区、着色器、GLSL

    原文链接: http://www.rastertek.com/gl40tut04.html Tutorial 4: Buffers, Shaders, and GLSL 第四章:缓冲区.着色器.GLS ...

最新文章

  1. yolov5训练自己的数据集(缺陷检测分类——看了就懂系列)
  2. ubuntu QT Creater 安装
  3. 项目: 用C语言写一个精美图形化的音乐播放器【C++ / C】
  4. Spring框架分为哪七大模块以及各模块的主要功能作用
  5. 吐血整理!10 个机器学习教程汇总,爱可可推荐!
  6. 113. Path Sum II
  7. 通过组策略实现客户端注册证书
  8. android:paddingtop 百分比,相对层中的百分比宽度
  9. java enummap_Java EnumMap values()方法与示例
  10. easyui input输入框的限制和校验条件
  11. 微信内测新功能:公众号们脖子一凉...
  12. java命令行执行编译好的类_Java命令行编译并执行Java程序
  13. Lua笔记4 闭包、迭代器
  14. Unity与 DLL文件 ☀️| 怎样使用 C# 类库 生成一个DLL文件 并 调用!
  15. macbook 终端命令怎么使用_mac怎么打开终端?mac打开命令提示符的方法
  16. 请教淘宝API sign签名问题,望高人指点!谢谢!
  17. FTP上传软件常见错误问题集锦
  18. WebSocket is already in CLOSING or CLOSED state
  19. 3.28leet28
  20. 【NOIP2013模拟】比赛总结

热门文章

  1. 比较偏门的JVM语言Quercus - PHP on JVM
  2. PhpED和Zend Studio for Eclipse的Debugger配置
  3. Netlink 0002 -- 什么是Netlink
  4. scala中的作用域保护
  5. SQL操作结果集-并集,差集,交集,结果集排序
  6. 【DFS】n皇后问题(代码逐句分析)
  7. jquery ajax 删除确认,jquery 漂亮的删除确认和提交无刷新删除示例
  8. SLAM学习笔记-------------(七)视觉里程计
  9. Codeforces_Round527_Div3_C题--Prefixes and Suffixes
  10. 嵌入式软件工程师_嵌入式软件工程师适合去芯片公司吗?