From 927f2a51ffd44c8c55d01488e36c564aae6bb7bc Mon Sep 17 00:00:00 2001 From: Rushil Kapoor Date: Tue, 16 Jul 2024 15:33:10 +0530 Subject: [PATCH] feat: add `all` target and some clean up commands BTC-1333 --- packages/wasm-miniscript/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/wasm-miniscript/Makefile b/packages/wasm-miniscript/Makefile index d91f03f..bde1071 100644 --- a/packages/wasm-miniscript/Makefile +++ b/packages/wasm-miniscript/Makefile @@ -1,11 +1,15 @@ -.PHONY: build-image build-wasm enter-image clean-container clean-image +.PHONY: all build-image build-wasm enter-image clean-container clean-image CONTAINER_ENGINE ?= docker +all: build-image build-wasm + build-image: $(CONTAINER_ENGINE) build --tag wasm-builder . build-wasm: + rm -rf dist/ js/wasm/ + $(CONTAINER_ENGINE) rm -f wasm-builder-container || true $(CONTAINER_ENGINE) run -v $(shell pwd)/src:/usr/src/app/src \ --name wasm-builder-container wasm-builder \ npm run build