Skip to content

Commit

Permalink
Merge pull request #11 from jjoshm/master
Browse files Browse the repository at this point in the history
fix makefile setup target
  • Loading branch information
mattsse authored Sep 6, 2024
2 parents bcb18c9 + 1f44621 commit b096743
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ BINDINGS_OUT_PATH=$(CONTRACTS_PATH)/out/$(BINDINGS_FOLDER)
bindings:
rm -rf $(BINDINGS_CRATES_FOLDER)
rm -rf $(BINDINGS_OUT_PATH)

# Generate new bindings
@forge bind --root $(CONTRACTS_PATH) --crate-name $(BINDINGS_FOLDER)

# Move bindings to the correct location
@mv -f $(BINDINGS_OUT_PATH) $(CRATES_FOLDER)

# Target for building the project
build: bindings
@$(CARGO) build

# Target for building the project in release mode
build-release: bindings
@$(CARGO) build --release
Expand All @@ -47,8 +47,8 @@ test:

# Target for installing forge dependencies
setup:
@forge install
@forge install --root $(CONTRACTS_PATH)


# Declare phony targets
.PHONY: build build-release clean fmt bindings
.PHONY: build build-release clean fmt bindings

0 comments on commit b096743

Please sign in to comment.