Skip to content

Instantly share code, notes, and snippets.

@awilfox
Forked from duckinator/test.c
Created October 7, 2012 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save awilfox/3846723 to your computer and use it in GitHub Desktop.
Save awilfox/3846723 to your computer and use it in GitHub Desktop.
file=".tmp-`date +'%s'`.c"
test.c: a.out run
a.out:
@tail -n +2 test.c > ${file}
@gcc -std=c99 -ggdb -I. -DDEBUG ${REST} ${file}
@rm ${file}
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