Permalink
Browse files

Change the make to just make the bin linking to the cli-wrapper.js in…

… the current folder. This is better for npm.
  • Loading branch information...
1 parent 6fc25e9 commit 803b72b325f66327d3fed524102ba411839a1735 @isaacs committed Mar 10, 2010
Showing with 8 additions and 24 deletions.
  1. +1 −2 .gitignore
  2. +7 −0 Makefile
  3. +0 −19 Makefile.src
  4. +0 −3 configure
View
@@ -1,2 +1 @@
-Makefile
-build
+build
View
@@ -0,0 +1,7 @@
+
+all: node-bench
+
+node-bench:
+ @! test -d build && mkdir build || true
+ @gcc -DNODE_BENCH="\"$(PWD)/lib/cli-wrapper.js\"" -o build/node-bench src/node-bench.c
+ @echo "built"
View
@@ -1,19 +0,0 @@
-
-all: node-bench
-
-node-bench:
- @! test -d build && mkdir build || true
- @gcc -DNODE_BIN="\"@NODE_BIN@\"" -o build/node-bench src/node-bench.c
- @echo "built"
-
-install:
- @! test -d /usr/local/lib/node-bench && mkdir /usr/local/lib/node-bench || true
- @cp lib/*.js /usr/local/lib/node-bench/
- @cp build/node-bench /usr/local/bin/
- @echo "installed"
-
-clean:
- @test -d build && rm -r build || true
- @test -d /usr/local/lib/node-bench/ && rm -r /usr/local/lib/node-bench/ || true
- @test -f /usr/local/bin/node-bench && rm /usr/local/bin/node-bench || true
- @echo "cleaned"
View
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-sed "s|@NODE_BIN@|$(which node)|g" < Makefile.src > Makefile

0 comments on commit 803b72b

Please sign in to comment.