mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
13 lines
310 B
Makefile
13 lines
310 B
Makefile
test = $0
|
|
reverse = $2 $1
|
|
twice = $1$1
|
|
sideeffect = $(shell echo "called$1:" >>dummyfile)
|
|
|
|
all:
|
|
test "$(call test)" = "test"
|
|
test "$(call reverse,1,2)" = "2 1"
|
|
# expansion happens *before* substitution, thank sanity
|
|
test "$(call twice,$(sideeffect))" = ""
|
|
test `cat dummyfile` = "called:"
|
|
@echo TEST-PASS
|