Skip to content

Instantly share code, notes, and snippets.

@kagminjeong
Created June 6, 2011 18:10
Show Gist options
  • Save kagminjeong/1010745 to your computer and use it in GitHub Desktop.
Save kagminjeong/1010745 to your computer and use it in GitHub Desktop.
.SUFFIXES: .in
.in:
echo $< to $@
foo: dep
bar: dep
echo $< to $@
test: test.in dep
echo $< to $@
extra: extra.in dep
% touch foo.in bar.in a.in extra.in test.in dep
% make foo
% make bar
echo to bar
to bar
% make a
echo a.in to a
a.in to a
% make test
echo test.in to test
test.in to test
% make extra
echo extra.in to extra
extra.in to extra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment