Get the latest tech news

Makefile Style Guide


building software | generating documents | data workflows large projects | setup targets | portable projects | shell scripts | references A project is a directory of source files under version control with a build file at the root. The build file is used to generate target files which are not under version control.

The only use I have found for the delayed evaluation assignment operator is with the wildcard variable function to pick up file names that are created during execution of the makefile. Two common mistakes are not double escaping dollar signs in the underlying shell script and not using parens to access variables with names longer than a single character. We don't think there is much value using the include directive just to split a large makefile, even one thousands of lines long, into multiple files.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Makefile Style Guide

Makefile Style Guide