Last change
on this file was 2462, checked in by bird, 14 years ago |
kmk: Implemented . Fixes #81.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
|
File size:
338 bytes
|
Rev | Line | |
---|
[2462] | 1 | #
|
---|
| 2 | # The $(root ...) and $(notroot ) functions.
|
---|
| 3 | #
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | x := $(root /a)
|
---|
| 8 | y := $(notroot /a)
|
---|
| 9 | ifneq ($x,/)
|
---|
| 10 | $(error x=$x)
|
---|
| 11 | endif
|
---|
| 12 | ifneq ($y,a)
|
---|
| 13 | $(error y=$y)
|
---|
| 14 | endif
|
---|
| 15 |
|
---|
| 16 | x := $(root /a /b /)
|
---|
| 17 | y := $(notroot /a /b /)
|
---|
| 18 | ifneq ($x,/ / /)
|
---|
| 19 | $(error x=$x)
|
---|
| 20 | endif
|
---|
| 21 | ifneq ($y,a b .)
|
---|
| 22 | $(error y=$y)
|
---|
| 23 | endif
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | # dummy
|
---|
| 27 | all:
|
---|
| 28 | echo The root and notroot functions works.
|
---|
| 29 |
|
---|
| 30 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.