[3316] | 1 | # $Id: testcase-includedep-esc-sub.kmk 3318 2020-04-01 07:05:32Z bird $
|
---|
| 2 | ## @file
|
---|
| 3 | # kBuild - testcase for the includdep directive with filename escaping, helper
|
---|
| 4 | # file that gets included.
|
---|
| 5 | #
|
---|
| 6 |
|
---|
| 7 | #
|
---|
| 8 | # Copyright (c) 2007-2020 knut st. osmundsen <bird-kBuild-spamx@anduin.net>
|
---|
| 9 | #
|
---|
| 10 | # This file is part of kBuild.
|
---|
| 11 | #
|
---|
| 12 | # kBuild is free software; you can redistribute it and/or modify
|
---|
| 13 | # it under the terms of the GNU General Public License as published by
|
---|
| 14 | # the Free Software Foundation; either version 3 of the License, or
|
---|
| 15 | # (at your option) any later version.
|
---|
| 16 | #
|
---|
| 17 | # kBuild is distributed in the hope that it will be useful,
|
---|
| 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 20 | # GNU General Public License for more details.
|
---|
| 21 | #
|
---|
| 22 | # You should have received a copy of the GNU General Public License
|
---|
| 23 | # along with kBuild. If not, see <http://www.gnu.org/licenses/>
|
---|
| 24 | #
|
---|
| 25 | #
|
---|
| 26 |
|
---|
| 27 | testcase-includedep-esc-sub.kmk=included
|
---|
| 28 |
|
---|
| 29 | # spaces
|
---|
| 30 | /phoney/file-with-two-spaces\ \ .c: \
|
---|
| 31 | /phoney/header-file-with-two-spaces\ \ .h
|
---|
| 32 |
|
---|
[3318] | 33 |
|
---|
| 34 | #
|
---|
| 35 | # From example-spaces.kmk
|
---|
| 36 | #
|
---|
| 37 | /phoney-dep-ignore:
|
---|
| 38 |
|
---|
| 39 | phoney\ space\ \ 1: /phoney-dep\ space\ \ 1
|
---|
| 40 |
|
---|
| 41 | phoney\ colon\:\ 2: /phoney-dep\ colon\:\ 2 \
|
---|
| 42 |
|
---|
| 43 | phoney\ hash\#\ 3 : /phoney-dep\ hash\#\ 3
|
---|
| 44 |
|
---|
| 45 | phoney\ dollar$$\ 4 : /phoney-dep\ dollar$$\ 4 \
|
---|
| 46 |
|
---|
| 47 | phoney\ slash-space\\\ 5: /phoney-dep\ slash-space\\\ 5
|
---|
| 48 |
|
---|
| 49 | phoney\ slash-hash\\\#\ 6: /phoney-dep\ slash-hash\\\#\ 6 \
|
---|
| 50 |
|
---|
| 51 | phoney\ slash-slash-hash\\\\\#\ 7: /phoney-dep\ slash-slash-hash\\\\\#\ 7
|
---|
| 52 |
|
---|
| 53 | phoney\ equal\=\ 8: /phoney-dep\ equal\=\ 8
|
---|
| 54 |
|
---|
| 55 | phoney\ semI\;\ 9: /phoney-dep\ semi\;\ 9
|
---|
| 56 |
|
---|
| 57 | # Note! The percent is only escaped on the target side!
|
---|
| 58 | phoney\ percent\%\ 10: /phoney-dep\ percent%\ 10 \
|
---|
| 59 |
|
---|
| 60 | # Note! The pipe is only escaped on the dependency list side!
|
---|
| 61 | phoney\ pipe|\ 11: /phoney-dep\ pipe\|\ 11
|
---|
| 62 |
|
---|
| 63 | phoney\ plus+\ 12: \
|
---|
| 64 | /phoney-dep\ plus+\ 12
|
---|
| 65 |
|
---|
| 66 | phoney\ trailing-slash13\\: /phoney-dep\ trailing-slash13\ \
|
---|
| 67 |
|
---|
| 68 | phoney\ trailing-slash13b\\: /phoney-dep\ trailing-slash13b\ \
|
---|
| 69 | \
|
---|
| 70 | \
|
---|
| 71 | \
|
---|
| 72 |
|
---|
| 73 | phoney\ trailing-slash14\\: \
|
---|
| 74 | /phoney-dep\ trailing-slash14\\ \
|
---|
| 75 | /phoney-dep-ignore
|
---|
| 76 |
|
---|
| 77 | phoney\ 15-trailing-space\ : /phoney-dep\ 15-trailing-space\ /phoney-dep-ignore
|
---|
| 78 |
|
---|
| 79 | # Note! No stripping spaces! Trailing space here that gets stripped instead of escaped.
|
---|
| 80 | phoney\ 16-no-trailing-space\\: /phoney-dep\ 16-no-trailing-space\
|
---|
| 81 |
|
---|
| 82 | phoney\ 17-3x-escaped-newlines\ becomes-single-space: /phoney-dep\ 17-3x-escaped-newlines\ \
|
---|
| 83 | \
|
---|
| 84 | \
|
---|
| 85 | becomes-single-space
|
---|
| 86 |
|
---|
| 87 | # Note! Must have a trailing space or comment.
|
---|
| 88 | phoney\ 18-3x-escaped-trailing-spaces-no-newline\ \ \\: \
|
---|
| 89 | /phoney-dep\ 18-3x-escaped-trailing-spaces-no-newline\ \ \
|
---|
| 90 |
|
---|
| 91 | phoney\ 19-target-trailing-space-with-padding\ : /phoney-dep\ 19-target-trailing-space-with-padding\ /phoney-dep-ignore
|
---|
| 92 |
|
---|
| 93 | phoney\ 20-target-trailing-space-with-newline-padding\ \
|
---|
| 94 | \
|
---|
| 95 | : /phoney-dep\ 20-target-trailing-space-with-newline-padding\ /phoney-dep-ignore
|
---|
| 96 |
|
---|
| 97 | phoney\ 21-target-trailing-space-with-newline-padding-and-tail\ \
|
---|
| 98 | \
|
---|
| 99 | \
|
---|
| 100 | \
|
---|
| 101 | my-tail-21: /phoney-dep\ 21-target-trailing-space-with-newline-padding-and-tail\ \
|
---|
| 102 | \
|
---|
| 103 | \
|
---|
| 104 | my-tail-21
|
---|
| 105 |
|
---|
| 106 |
|
---|
| 107 | all-trailing-slashes1: /phoney-dep\ trailing-slash13\ \
|
---|
| 108 |
|
---|
| 109 | all-trailing-slashes2: /phoney-dep\ trailing-slash13b\ \
|
---|
| 110 | \
|
---|
| 111 | \
|
---|
| 112 | \
|
---|
| 113 |
|
---|