Skip to content

Commit

Permalink
Merge pull request #17 from flipt-io/edit-makefile
Browse files Browse the repository at this point in the history
chore: get Makefile working for all different libs
  • Loading branch information
yquansah authored Dec 1, 2023
2 parents 00e064f + e34264d commit 0959dd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
LIB = libfliptengine
HEADER = flipt_engine.h

.DEFAULT_GOAL := help
.PHONY: go node python ruby help clean
.PHONY: build go node python ruby help clean

# run cargo build if anything in engine/ changes
build: ## Build the shared engine library
cargo build --release

go: build ## Prepare the go client for building
cp target/release/$(LIB).* flipt-client-go/
cp target/release/flipt_engine.h flipt-client-go/
cp target/release/$(LIB).* target/release/$(HEADER) flipt-client-go/

node: build ## Prepare the node client for building
cp target/release/$(LIB).* flipt-client-node/
Expand All @@ -22,7 +22,7 @@ ruby: build ## Prepare the ruby client for building

clean: ## Clean up build artifacts
rm -rf target
rm -rf flipt-client-go/$(LIB).*
rm -rf flipt-client-go/$(LIB).* flipt-client-go/$(HEADER)
rm -rf flipt-client-node/$(LIB).*
rm -rf flipt-client-python/$(LIB).*
rm -rf flipt-client-ruby/lib/ext/$(LIB).*
Expand Down

0 comments on commit 0959dd9

Please sign in to comment.