Skip to content
Browse files

Fixed makefile, added package.json for npm compability

  • Loading branch information...
1 parent 2064ae1 commit d8a8d16ee0db5d1da5d3f0429d6d74d612c60060 @indutny indutny committed
Showing with 22 additions and 6 deletions.
  1. +11 −6 makefile
  2. +11 −0 package.json
View
17 makefile
@@ -1,8 +1,13 @@
-all:
- node-waf configure build && mkdir -p ~/.node_libraries && cp ./build/default/hashlib.node ~/.node_libraries/hashlib.node
-tests:
- node ./test.js
+build:
+ @node-waf configure build
+
install:
- mkdir -p ~/.node_libraries && cp ./build/default/hashlib.node ~/.node_libraries/hashlib.node
+ @mkdir -p ~/.node_libraries && cp ./build/default/hashlib.node ~/.node_libraries/hashlib.node
+
+all: build install
+
+tests:
+ @node ./test.js
+
clean:
- rm -rf ./build
+ @rm -rf ./build
View
11 package.json
@@ -0,0 +1,11 @@
+{
+ "name": "hashlib",
+ "author": "Illarionov Oleg",
+ "description": "lib for node which makes hashes",
+ "version": "1.0.0",
+ "contributors": [
+ { "name": "Fedor Indutny", "email": "fedor.indutny@gmail.com" },
+ ],
+ "directories": { "lib": "./build/default" },
+ "engines": { "node": ">= 0.2.0" }
+}

0 comments on commit d8a8d16

Please sign in to comment.
Something went wrong with that request. Please try again.