diff options
| author | Michael Forney <mforney@mforney.org> | 2016-07-03 10:44:24 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-07-03 10:44:24 -0700 |
| commit | 257e042bf28382e6f5dc3e2acf929a3fe01e1201 (patch) | |
| tree | ea18427bb18adee46525932083f71ec62311db92 /ninja.rc | |
| parent | 52b76cb615034dc8db23f3f76edcef8a150dd510 (diff) | |
Add sub helper function
Diffstat (limited to 'ninja.rc')
| -rw-r--r-- | ninja.rc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -23,6 +23,11 @@ fn include { echo include $* } +fn sub { + cat >$1 + subninja '$dir'/$1 +} + fn rule { name=$1 { shift |
