Skip to content

Commit ec57054

Browse files
committed
Optiomization workspace/Makefile build
1 parent 138548f commit ec57054

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

workspace/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@ build:
5151
for crate in $(wildcard crates/*); do \
5252
cargo build -p $$(basename $$crate) $(MODE_ARGS) $(CARGO_ARGS); \
5353
done; \
54+
for sim in $(wildcard native-simulators/*); do \
55+
cargo build -p $$(basename $$sim) $(CARGO_ARGS); \
56+
done; \
5457
else \
5558
$(MAKE) -e -C contracts/$(CONTRACT) build; \
56-
fi; \
57-
for sim in $(wildcard native-simulators/*); do \
58-
cd $$sim && cargo build && cd ../..; \
59-
done; \
59+
cargo build -p $(CONTRACT)-sim; \
60+
fi;
6061

6162
# Run a single make task for a specific contract. For example:
6263
#

0 commit comments

Comments
 (0)