forked from paixaop/node-sodium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
delete libsodium configure generated files
- Loading branch information
Showing
14 changed files
with
53 additions
and
23,231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
SHELL := /bin/bash | ||
TESTS = test/*.js | ||
REPORTER = dot | ||
|
||
CHDIR_SHELL := $(SHELL) | ||
define chdir | ||
$(eval _D=$(firstword $(1) $(@D))) | ||
$(info $(MAKE): cd $(_D)) $(eval SHELL = cd $(_D); $(CHDIR_SHELL)) | ||
endef | ||
|
||
test: | ||
@echo Run make test-cov for coverage reports | ||
@echo Mocha and Instanbul Node.js must be installed globally | ||
@NODE_ENV=test mocha \ | ||
-R $(REPORTER) \ | ||
$(TESTS) | ||
|
||
instrument: clean | ||
istanbul instrument --output lib-cov --no-compact --variable global.__coverage__ lib | ||
|
||
|
||
test-cov: clean instrument | ||
@echo Run make test for simple tests with no coverage reports | ||
@echo Mocha and Istanbul Node.js must be installed globally | ||
@COVERAGE=1 NODE_ENV=test mocha \ | ||
-R mocha-istanbul \ | ||
$(TESTS) | ||
@istanbul report | ||
@rm -rf lib-cov | ||
@echo | ||
@echo Open html-report/index.html file in your browser | ||
|
||
git-pull: | ||
git pull | ||
git submodule init | ||
git submodule update | ||
git submodule status | ||
|
||
clean: | ||
-rm -fr lib-cov | ||
-rm -fr covershot | ||
-rm -fr html-report | ||
-rm -fr coverage | ||
-rm -fr coverage.html | ||
|
||
sodium: | ||
cd libsodium; \ | ||
./autogen.sh; \ | ||
./configure; \ | ||
make | ||
node-gyp rebuild | ||
|
||
.PHONY: test-cov site docs test docclean |
Oops, something went wrong.