all: wasi_ephemeral_crypto.txt wasi_ephemeral_crypto.md wasi_ephemeral_crypto_common.md wasi_ephemeral_crypto_asymmetric_common.md wasi_ephemeral_crypto_symmetric.md wasi_ephemeral_crypto_signatures.md wasi_ephemeral_crypto_kx.md wasi_ephemeral_crypto_external_secrets.md

wasi_ephemeral_crypto.txt: wasi_ephemeral_crypto_common.witx wasi_ephemeral_crypto_asymmetric_common.witx wasi_ephemeral_crypto_symmetric.witx wasi_ephemeral_crypto_signatures.witx wasi_ephemeral_crypto_kx.witx wasi_ephemeral_crypto_external_secrets.witx
	witx-codegen --output-type overview -o $@ wasi_ephemeral_crypto_common.witx wasi_ephemeral_crypto_asymmetric_common.witx wasi_ephemeral_crypto_symmetric.witx wasi_ephemeral_crypto_signatures.witx wasi_ephemeral_crypto_kx.witx wasi_ephemeral_crypto_external_secrets.witx

wasi_ephemeral_crypto.md: wasi_ephemeral_crypto_common.witx wasi_ephemeral_crypto_asymmetric_common.witx wasi_ephemeral_crypto_symmetric.witx wasi_ephemeral_crypto_signatures.witx wasi_ephemeral_crypto_kx.witx wasi_ephemeral_crypto_external_secrets.witx
	witx-codegen --output-type markdown -o $@ wasi_ephemeral_crypto_common.witx wasi_ephemeral_crypto_asymmetric_common.witx wasi_ephemeral_crypto_symmetric.witx wasi_ephemeral_crypto_signatures.witx wasi_ephemeral_crypto_kx.witx wasi_ephemeral_crypto_external_secrets.witx

wasi_ephemeral_crypto_common.md: wasi_ephemeral_crypto_common.witx
	witx-codegen --output-type markdown -o $@ wasi_ephemeral_crypto_common.witx

wasi_ephemeral_crypto_asymmetric_common.md: wasi_ephemeral_crypto_common.witx wasi_ephemeral_crypto_asymmetric_common.witx
	witx-codegen --output-type markdown -o $@ wasi_ephemeral_crypto_asymmetric_common.witx

wasi_ephemeral_crypto_symmetric.md: wasi_ephemeral_crypto_common.witx wasi_ephemeral_crypto_symmetric.witx
	witx-codegen --output-type markdown -o $@ wasi_ephemeral_crypto_symmetric.witx

wasi_ephemeral_crypto_signatures.md: wasi_ephemeral_crypto_common.witx wasi_ephemeral_crypto_asymmetric_common.witx wasi_ephemeral_crypto_signatures.witx
	witx-codegen --output-type markdown -o $@ wasi_ephemeral_crypto_signatures.witx

wasi_ephemeral_crypto_kx.md: wasi_ephemeral_crypto_common.witx wasi_ephemeral_crypto_asymmetric_common.witx wasi_ephemeral_crypto_kx.witx
	witx-codegen --output-type markdown -o $@ wasi_ephemeral_crypto_kx.witx

wasi_ephemeral_crypto_external_secrets.md: wasi_ephemeral_crypto_common.witx wasi_ephemeral_crypto_external_secrets.witx
	witx-codegen --output-type markdown -o $@ wasi_ephemeral_crypto_external_secrets.witx

clean:
	-rm -f *.md *.txt