Skip to content

Instantly share code, notes, and snippets.

@erincandescent
Created September 19, 2013 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erincandescent/6624929 to your computer and use it in GitHub Desktop.
Save erincandescent/6624929 to your computer and use it in GitHub Desktop.
# Example C compilation rule
rule Cc {
DEPENDS $(<) : $(>) ;
}
actions Cc {
$(CC) -o $(<) $(>) $(CFLAGS) ;
}
# Possible Scheme version?
(define Cc (lambda (input)
(let ((output (replace-ext (input))))
(actions ((output)) ((input)) (
((CC) -o (output) (input) (CFLAGS))
)
(output)
)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment