File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ cargo:
73
73
74
74
clean :
75
75
cargo clean
76
+ @set -eu; \
77
+ if [ -d " {{project-name}}-dbg" ]; then \
78
+ cd {{project-name}}-dbg && cargo clean; \
79
+ fi
76
80
77
81
prepare :
78
82
rustup target add riscv64imac-unknown-none-elf
Original file line number Diff line number Diff line change 48
48
$(MAKE ) -e -C contracts/$(CONTRACT ) build; \
49
49
fi
50
50
51
- build-simulator :
51
+ build-simulator : build
52
52
mkdir -p $(BUILD_DIR )
53
53
@set -eu; \
54
54
if [ " x$( CONTRACT) " = " x" ]; then \
@@ -93,6 +93,13 @@ cargo:
93
93
clean :
94
94
rm -rf build
95
95
cargo clean
96
+ @set -eu; \
97
+ cd contracts; \
98
+ for dir in * ; do \
99
+ if [ -d $$ dir/$$ dir-dbg ]; then \
100
+ (cd $$ dir/$$ dir-dbg && cargo clean); \
101
+ fi \
102
+ done
96
103
97
104
TEMPLATE_TYPE := --git
98
105
TEMPLATE_REPO := https://github.com/cryptape/ckb-script-templates
You can’t perform that action at this time.
0 commit comments