Skip to content

osamaar/makefile_example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Correct incremental rebuilds with GNU Make

This repository contains example source code for Correct incremental builds with Makefiles. It contains the following directories:

  • 1_simple: A simple Makefile that doesn't rebuild correctly.
  • 2_manual: Manually specifies dependencies.
  • 3_transitive: Automatic dependencies with a header that includes a header. Breaks on renames.
  • 4_renamed_input: Automatic dependencies that handle renamed files.

In each directory, run ./demo.sh to see a demonstration of how it works.

About

Example of Makefiles with correct automatic dependencies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 64.3%
  • C 29.7%
  • Makefile 6.0%