From 29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:21:29 +0200 Subject: Adding upstream version 1:0.1.9998svn3589+dfsg. Signed-off-by: Daniel Baumann --- src/kmk/testcase-root.kmk | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/kmk/testcase-root.kmk (limited to 'src/kmk/testcase-root.kmk') diff --git a/src/kmk/testcase-root.kmk b/src/kmk/testcase-root.kmk new file mode 100644 index 0000000..92de5c5 --- /dev/null +++ b/src/kmk/testcase-root.kmk @@ -0,0 +1,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. + + -- cgit v1.2.3