Skip to content

Commit bece1fe

Browse files
committed
build-simulator merge to build
1 parent 997291a commit bece1fe

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

workspace/Makefile

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,10 @@ build:
4646
done; \
4747
else \
4848
$(MAKE) -e -C contracts/$(CONTRACT) build; \
49-
fi
50-
51-
build-simulator:
52-
@set -eu;\
53-
if [ ! -d native-simulators ] || [ -z "$$(ls -A native-simulators)" ]; then \
54-
echo "There is no native-simulator to compile."; \
55-
echo "If necessary, please use:"; \
56-
echo "make generate-native-simulator CRATE=<existing contract>"; \
57-
else \
58-
mkdir -p $(BUILD_DIR); \
59-
for sim in $(wildcard native-simulators/*); do \
60-
cd $$sim && cargo build && cd ../..; \
61-
done; \
62-
cp target/debug/*_sim.* $(BUILD_DIR); \
63-
fi
49+
fi; \
50+
for sim in $(wildcard native-simulators/*); do \
51+
cd $$sim && cargo build && cd ../..; \
52+
done; \
6453

6554
# Run a single make task for a specific contract. For example:
6655
#

0 commit comments

Comments
 (0)