Skip to content

Commit

Permalink
Add install to the makefile. Fix issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Apr 13, 2010
1 parent a4d0bcc commit 68ac120
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Expand Up @@ -5,3 +5,19 @@ 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"

install: node-bench
@cp build/node-bench /usr/local/bin/
@echo "installed"

clean: uninstall
@[ -d build ] && rm -rf build || true
@echo "cleaned"

uninstall:
@[ -f /usr/local/bin/node-bench ] && rm /usr/local/bin/node-bench || true
@echo "uninstalled"

link: node-bench
@ln -s build/node-bench /usr/local/bin/
@echo "linked"

1 comment on commit 68ac120

@tj
Copy link

@tj tj commented on 68ac120 Apr 13, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool thanks man, now also available via:
$ kiwi install bench

Please sign in to comment.