Skip to content

Instantly share code, notes, and snippets.

@fabriceleal
Created December 27, 2012 19:51
Show Gist options
  • Save fabriceleal/4391411 to your computer and use it in GitHub Desktop.
Save fabriceleal/4391411 to your computer and use it in GitHub Desktop.
Implicit rule: For all targets, execute the same rule. Dependency has the same name as the target (give or take extension)
# Assumes that
# exe[n] is generated from exe[n].cpp
all: exe1 exe2 exe3
%: %.cpp
$(CC) $? -o $@ $(FLAGS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment