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 31