summaryrefslogtreecommitdiff
path: root/c/wasi-http/0.2.0/shared.mk
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-09-07 15:20:56 +0100
committerAndrew Clayton <a.clayton@nginx.com>2024-09-07 15:20:56 +0100
commit88a9d6b0deaf7e588565d53c212d81279b5f9392 (patch)
tree6bdded33796e94090c7fbc96283f4ec3906f7717 /c/wasi-http/0.2.0/shared.mk
parentde4cad50fedf5a89772d72c67c75c3c6a18e1402 (diff)
downloadproject_blackbird-88a9d6b0deaf7e588565d53c212d81279b5f9392.tar.gz
project_blackbird-88a9d6b0deaf7e588565d53c212d81279b5f9392.tar.bz2
w-h/0.2.0/shared.mk: Use a variable for the WIT files directory
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '')
-rw-r--r--c/wasi-http/0.2.0/shared.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/c/wasi-http/0.2.0/shared.mk b/c/wasi-http/0.2.0/shared.mk
index b61be3a..d21aca0 100644
--- a/c/wasi-http/0.2.0/shared.mk
+++ b/c/wasi-http/0.2.0/shared.mk
@@ -1,3 +1,5 @@
+WIT_DIR = ../../wit/wasi-http/0.2.0
+
# Look for wasi-sysroot in some common places, falling back
# to provided WASI_SYSROOT
ifneq ("$(wildcard /usr/wasm32-wasi)", "")
@@ -17,8 +19,8 @@ LDFLAGS = -Wl,--no-entry,--export=__heap_base,--export=__data_end,--export=mallo
all: component.wasm
bindgen:
- $(WIT_BINDGEN) c ../../wit/wasi-http/0.2.0 --autodrop-borrows yes --world proxy
- $(WIT_BINDGEN) markdown ../../wit/wasi-http/0.2.0 --world proxy
+ $(WIT_BINDGEN) c $(WIT_DIR) --autodrop-borrows yes --world proxy
+ $(WIT_BINDGEN) markdown $(WIT_DIR) --world proxy
.PHONY:
module.wasm: bindgen