Add patterns

How it works:

```yaml
build %root:
    help: this builds %root
    dependencies:
        - "%root.c"
    output:
        - "%root.o"
    formula: gcc %root.c -o %root.o
```