From 8f658e6d8511f7dfb7fade1ad55191dc80c1da0e Mon Sep 17 00:00:00 2001 From: Subramanian Mahadevan Date: Wed, 21 Sep 2022 19:55:13 +0530 Subject: [PATCH] fixed Makefile to always clean and recopy the examples build folder (located under examples) (#772) --- pyscriptjs/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyscriptjs/Makefile b/pyscriptjs/Makefile index 37a9fd2f..5b980e15 100644 --- a/pyscriptjs/Makefile +++ b/pyscriptjs/Makefile @@ -66,7 +66,9 @@ examples: find ./examples/webgl -type f -name '*.html' -exec sed $(SED_I_ARG) s+https://pyscript.net/latest/+../../../build/+g {} \; find ./examples -type f -name '*.html' -exec sed $(SED_I_ARG) s+https://pyscript.net/latest/+../build/+g {} \; npm run build - cp -R ./build/ ./examples/build + rm -rf ./examples/build + mkdir -p ./examples/build + cp -R ./build/* ./examples/build @echo "To serve examples run: $(conda_run) python -m http.server 8080 --directory examples" # run prerequisites and serve pyscript examples at http://localhost:8000/examples/