Skip to content

seisman/how-to-write-makefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

跟我一起写Makefile (PDF重制版)

image

简介

《跟我一起写Makefile》是 陈皓 发表在其CSDN博客上的系列文章。该系列文章翻译整理自 GNU Make Manual ,一直受到读者的推荐,是很多人学习Makefile的首选文档。目前网络上流传的PDF版本多为祝冬华整理的版本。这个版本的排版一般,代码部分没有做任何语法高亮。

2010年初学Makefile的时候,读了前几章皮毛,一直用到了现在。最近想着重新学习一下Makefile,顺便学习一下Sphinx,重新制作一个更精美的PDF版本。

相关

本地编译

  1. Clone项目到本地:

    $ git clone https://github.com/seisman/how-to-write-makefile.git
  2. 安装依赖:

    $ pip install -r requirements.txt
  3. 编译生成HTML:

    $ make html
    $ firefox build/html/index.html&
  4. 编译生成PDF(要求安装TeXLive):

    $ make latexpdf
    $ evince build/latex/Makefile.pdf&