VirtualBox

source: kBuild/trunk/src/kmk/testcase-root.kmk@ 3387

Last change on this file since 3387 was 2462, checked in by bird, 13 years ago

kmk: Implemented . Fixes #81.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 338 bytes
Line 
1#
2# The $(root ...) and $(notroot ) functions.
3#
4
5
6
7x := $(root /a)
8y := $(notroot /a)
9ifneq ($x,/)
10 $(error x=$x)
11endif
12ifneq ($y,a)
13 $(error y=$y)
14endif
15
16x := $(root /a /b /)
17y := $(notroot /a /b /)
18ifneq ($x,/ / /)
19 $(error x=$x)
20endif
21ifneq ($y,a b .)
22 $(error y=$y)
23endif
24
25
26# dummy
27all:
28 echo The root and notroot functions works.
29
30
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use