add call.mk
diff --git a/test/call.mk b/test/call.mk
new file mode 100644
index 0000000..4d9c062
--- /dev/null
+++ b/test/call.mk
@@ -0,0 +1,18 @@
+# TODO
+
+# from gyp-generated Makefile
+empty :=
+space := $(empty) $(empty)
+
+replace_spaces = $(subst $(space),?,$1)
+unreplace_spaces = $(subst ?,$(space),$1)
+dirx = $(call unreplace_spaces,$(dir $(call replace_spaces,$1)))
+
+test: foo
+	echo $(call dirx,foo/bar)
+	echo $(call dirx,foo bar/baz quux)
+	echo $(call dirx,foo,bar)
+
+foo:
+	mkdir foo "foo bar"
+