Skip to content

Instantly share code, notes, and snippets.

@duckinator
Forked from awilfox/Makefile
Created October 7, 2012 01:26
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 duckinator/3846760 to your computer and use it in GitHub Desktop.
Save duckinator/3846760 to your computer and use it in GitHub Desktop.
file=".tmp-`date +'%s'`.c"
test.c: run
a.out:
@tail -n +2 test.c | gcc -std=c99 -ggdb -I. -DDEBUG -xc -
run: a.out
@./a.out
@rm a.out
#!/usr/bin/env make
#include <stdio.h>
int main() {
puts("tada!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment