summaryrefslogtreecommitdiffstats
path: root/src/kmk/testcase-includedep-esc-sub.kmk
blob: fe132d51d8d73cbe055ef8bac9c7b44307f7b198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# $Id: testcase-includedep-esc-sub.kmk 3318 2020-04-01 07:05:32Z bird $
## @file
# kBuild - testcase for the includdep directive with filename escaping, helper
#          file that gets included.
#

#
# Copyright (c) 2007-2020 knut st. osmundsen <bird-kBuild-spamx@anduin.net>
#
# This file is part of kBuild.
#
# kBuild is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# kBuild is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with kBuild.  If not, see <http://www.gnu.org/licenses/>
#
#

testcase-includedep-esc-sub.kmk=included

# spaces
/phoney/file-with-two-spaces\ \ .c: \
		/phoney/header-file-with-two-spaces\ \ .h


#
# From example-spaces.kmk
#
/phoney-dep-ignore:

phoney\ space\ \ 1: /phoney-dep\ space\ \ 1

phoney\ colon\:\ 2: /phoney-dep\ colon\:\ 2 \

phoney\ hash\#\ 3 : /phoney-dep\ hash\#\ 3 

phoney\ dollar$$\ 4 : /phoney-dep\ dollar$$\ 4 \

phoney\ slash-space\\\ 5: /phoney-dep\ slash-space\\\ 5

phoney\ slash-hash\\\#\ 6: /phoney-dep\ slash-hash\\\#\ 6 \

phoney\ slash-slash-hash\\\\\#\ 7:  /phoney-dep\ slash-slash-hash\\\\\#\ 7

phoney\ equal\=\ 8: /phoney-dep\ equal\=\ 8

phoney\ semI\;\ 9: /phoney-dep\ semi\;\ 9

# Note! The percent is only escaped on the target side!
phoney\ percent\%\ 10:	/phoney-dep\ percent%\ 10 \

# Note! The pipe is only escaped on the dependency list side!
phoney\ pipe|\ 11: /phoney-dep\ pipe\|\ 11    

phoney\ plus+\ 12: \
	/phoney-dep\ plus+\ 12

phoney\ trailing-slash13\\: /phoney-dep\ trailing-slash13\ \

phoney\ trailing-slash13b\\: /phoney-dep\ trailing-slash13b\ \
	\
	\
	\

phoney\ trailing-slash14\\: \
	/phoney-dep\ trailing-slash14\\ \
	/phoney-dep-ignore

phoney\ 15-trailing-space\ : /phoney-dep\ 15-trailing-space\  /phoney-dep-ignore

# Note! No stripping spaces! Trailing space here that gets stripped instead of escaped.
phoney\ 16-no-trailing-space\\: /phoney-dep\ 16-no-trailing-space\ 

phoney\ 17-3x-escaped-newlines\ becomes-single-space: /phoney-dep\ 17-3x-escaped-newlines\ \
\
\
	becomes-single-space

# Note! Must have a trailing space or comment.
phoney\ 18-3x-escaped-trailing-spaces-no-newline\ \ \\: \
	/phoney-dep\ 18-3x-escaped-trailing-spaces-no-newline\ \ \ 

phoney\ 19-target-trailing-space-with-padding\   : /phoney-dep\ 19-target-trailing-space-with-padding\  /phoney-dep-ignore

phoney\ 20-target-trailing-space-with-newline-padding\   \
\
: /phoney-dep\ 20-target-trailing-space-with-newline-padding\  /phoney-dep-ignore

phoney\ 21-target-trailing-space-with-newline-padding-and-tail\ \
\
 \
		\
my-tail-21: /phoney-dep\ 21-target-trailing-space-with-newline-padding-and-tail\ \
\
\
my-tail-21


all-trailing-slashes1: /phoney-dep\ trailing-slash13\ \

all-trailing-slashes2: /phoney-dep\ trailing-slash13b\ \
	\
	\
	\