Skip to content

Commit

Permalink
Adding new build targets: 'bench-addons' & 'bench-addons-clean'.
Browse files Browse the repository at this point in the history
With these two, it will be easier to manage the dependencies among
targets and easier to build/clean the addons which are being
used in benchmarking.
  • Loading branch information
kenny-y committed Jul 16, 2018
1 parent 19bc893 commit d2123e9
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ clean: ## Remove build artifacts.
$(RM) -r test/tmp*
$(RM) -r test/.tmp*
$(MAKE) test-addons-clean
$(MAKE) bench-addons-clean

.PHONY: distclean
distclean:
Expand Down Expand Up @@ -1045,13 +1046,23 @@ ifeq ($(XZ), 0)
endif

.PHONY: bench-all
bench-all:
bench-all: bench-addons-build
@echo "Please use benchmark/run.js or benchmark/compare.js to run the benchmarks."

.PHONY: bench
bench:
bench: bench-addons-build
@echo "Please use benchmark/run.js or benchmark/compare.js to run the benchmarks."

# Build required addons for benchmark before running it.
.PHONY: bench-addons-build
bench-addons-build: benchmark/napi/function_call/build/Release/binding.node \
benchmark/napi/function_args/build/Release/binding.node

.PHONY: bench-addons-clean
bench-addons-clean:
$(RM) -r benchmark/napi/function_call/build
$(RM) -r benchmark/napi/function_args/build

.PHONY: lint-md-clean
lint-md-clean:
$(RM) -r tools/remark-cli/node_modules
Expand Down

0 comments on commit d2123e9

Please sign in to comment.