summaryrefslogtreecommitdiff
path: root/src/kmk/testcase-root.kmk
blob: 92de5c56a0456c3fb9312260d3869d9d28a5b955 (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
#
# The $(root ...) and $(notroot ) functions.
#



x := $(root /a)
y := $(notroot /a)
ifneq ($x,/)
 $(error x=$x)
endif
ifneq ($y,a)
 $(error y=$y)
endif

x := $(root /a /b /)
y := $(notroot /a /b /)
ifneq ($x,/ / /)
 $(error x=$x)
endif
ifneq ($y,a b .)
 $(error y=$y)
endif


# dummy
all:
	echo The root and notroot functions works.