github.com/zyedidia/knit@v1.1.2-0.20230901152954-f7d4e39a0e24/test/shared_dep/Knitfile (about)

     1  local obj := f1.o f2.o f3.o
     2  
     3  return b{
     4  $ f1.c:
     5      echo "int main() { return 0; }" > $output
     6  
     7  $ %.o: f1.c
     8      cc -c $input -o $output
     9  
    10  $ prog: $obj
    11      ld $input -o $output
    12  }