Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 803b72b325f66327d3fed524102ba411839a1735 1 parent 6fc25e9
Isaac Z. Schlueter authored

Showing 4 changed files with 8 additions and 24 deletions. Show diff stats Hide diff stats

  1. +1 2  .gitignore
  2. +7 0 Makefile
  3. +0 19 Makefile.src
  4. +0 3  configure
3  .gitignore
... ... @@ -1,2 +1 @@
1   -Makefile
2   -build
  1 +build
7 Makefile
... ... @@ -0,0 +1,7 @@
  1 +
  2 +all: node-bench
  3 +
  4 +node-bench:
  5 + @! test -d build && mkdir build || true
  6 + @gcc -DNODE_BENCH="\"$(PWD)/lib/cli-wrapper.js\"" -o build/node-bench src/node-bench.c
  7 + @echo "built"
19 Makefile.src
... ... @@ -1,19 +0,0 @@
1   -
2   -all: node-bench
3   -
4   -node-bench:
5   - @! test -d build && mkdir build || true
6   - @gcc -DNODE_BIN="\"@NODE_BIN@\"" -o build/node-bench src/node-bench.c
7   - @echo "built"
8   -
9   -install:
10   - @! test -d /usr/local/lib/node-bench && mkdir /usr/local/lib/node-bench || true
11   - @cp lib/*.js /usr/local/lib/node-bench/
12   - @cp build/node-bench /usr/local/bin/
13   - @echo "installed"
14   -
15   -clean:
16   - @test -d build && rm -r build || true
17   - @test -d /usr/local/lib/node-bench/ && rm -r /usr/local/lib/node-bench/ || true
18   - @test -f /usr/local/bin/node-bench && rm /usr/local/bin/node-bench || true
19   - @echo "cleaned"
3  configure
... ... @@ -1,3 +0,0 @@
1   -#!/bin/sh
2   -
3   -sed "s|@NODE_BIN@|$(which node)|g" < Makefile.src > Makefile

0 comments on commit 803b72b

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