commit 0c047457ad81185b0a6f53e510ec94626257f32e parent 6d74d62b006b8de64d8bfa9140745fb8c817e869 Author: Kyle Milz <kyle@0x30.net> Date: Sun, 8 Jan 2017 14:53:16 -0700 jam: make Stringize platform dependent Diffstat:
M | Jamrules.tail | | | 19 | ++++++++++++++----- |
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/Jamrules.tail b/Jamrules.tail @@ -11,9 +11,18 @@ rule Stringize Clean clean : $(1) ; } -actions Stringize -{ - >> $(<) echo static const char *$(1:B) = R"( - >> $(<) type $(>) - >> $(<) echo )"; +if $(NT) { + actions Stringize + { + > $(<) echo "static const char *$(1:B) = R\"(" + >> $(<) cat $(>) + >> $(<) echo ")\";" + } +} else { + actions Stringize + { + > $(<) echo "static const char *$(1:B) = R\"(" + >> $(<) cat $(>) + >> $(<) echo ")\";" + } }