Skip to content

Instantly share code, notes, and snippets.

@denisdefreyne
Created June 10, 2011 05:21
Show Gist options
  • Save denisdefreyne/1018274 to your computer and use it in GitHub Desktop.
Save denisdefreyne/1018274 to your computer and use it in GitHub Desktop.
▸ ls -l content
-rw-r--r-- 1 ddfreyne staff 29 Jun 9 21:21 header1.h
-rw-r--r-- 1 ddfreyne staff 22 Jun 9 21:57 header2.h
-rw-r--r-- 1 ddfreyne staff 87 Jun 9 21:45 main.c
▸ cat content/header1.h
#include "header2.h"
▸ cat content/header2.h
#define STRING "foo"
▸ cat content/main.c
#include "header1.h"
#include <stdio.h>
int main(void)
{
puts(STRING);
return 0;
}
▸ nanoc co
[..]
create [0.04s] output/main.o
create [0.03s] output/main
[..]
▸ ./output/main
foo
▸ echo '#define STRING "bar"' > content/header2.h
▸ nanoc co
[..]
update [0.04s] output/main.o
update [0.03s] output/main
[..]
▸ ./output/main
bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment