Giter Site home page Giter Site logo

making-makefiles's Introduction

Making Makefiles

A brief Lunch & Learn about Makefiles

Clone from: https://github.com/ostera/making-makefiles

by @ostera

History

Make was created a long time ago. It's been around since 1976.

Before Make there used to come bundled both make and install shell scripts that would help building and installing the project.

Lastly, it's ultimate purpose was to abstract out dependency tracking, allow for composability of targets, and handling of files/archives.

Trivia

  1. It has at least 4 rewrites (bmake, pmake, fmake, nmake)
  2. Was created at Bell Labs by Stuart Feldman
  3. Fedlman got the 2003 ACM Software System Award for it

Composition

Targets

  • Typically define files in the file system
  • Are checked for modification time
  • May have Dependencies (Other Targets)

Composition

Variables

  • Can be input from the outside world
  • Can have default values
  • Can be exported for scripts and other makefiles

Hands-On

We need to know 3 things:

  1. We invoke a target by naming it: make target-name
  2. We specify a different makefile with the flag -f path/to/makefile
  3. The file extension is just a convention

Without further ado...

The End

Questions?

making-makefiles's People

Contributors

leostera avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.