github.com/aykevl/tinygo@v0.5.0/src/examples/wasm/Makefile (about)

     1  export: clean wasm_exec
     2  	tinygo build -o ./html/wasm.wasm -target wasm ./export/wasm.go
     3  	cp ./export/wasm.js ./html/
     4  	cp ./export/index.html ./html/
     5  
     6  main: clean wasm_exec
     7  	tinygo build -o ./html/wasm.wasm -target wasm ./main/main.go
     8  	cp ./main/index.html ./html/
     9  
    10  wasm_exec:
    11  	cp ../../../targets/wasm_exec.js ./html/
    12  
    13  clean:
    14  	rm -rf ./html
    15  	mkdir ./html