summaryrefslogtreecommitdiffstats
path: root/node/Makefile
diff options
context:
space:
mode:
authorroot <root@krebs>2011-06-29 21:06:26 +0200
committerroot <root@krebs>2011-06-29 21:06:26 +0200
commit4ee8976b04dac8dbfc25b8325526c158fce87990 (patch)
treeb77f8dfc4c8ec741ae1b7ff6a96e58f651e6a793 /node/Makefile
parente0b0b90df26b9190bb24ecee0a3ddb26f4156438 (diff)
parent9ab87e479e1f75665bc69623eeb740758acb3f0a (diff)
Merge branch 'master' of github.com:/krebscode/painload
Diffstat (limited to 'node/Makefile')
-rw-r--r--node/Makefile26
1 files changed, 21 insertions, 5 deletions
diff --git a/node/Makefile b/node/Makefile
index 00e27b6f..20e15c70 100644
--- a/node/Makefile
+++ b/node/Makefile
@@ -1,8 +1,24 @@
-.PHONY: all
-all: node-v0.4.8
- cd $< && ./configure && make && make install
+.PHONY: all build install
-node-%:
- cur http://nodejs.org/dist/$@.tar.gz | tar zx
+all:
+ @echo "You are made of stupid!"; exit 23
+
+build: node node/build/default/node
+ cd node && ./configure && make
+
+install: build
+ cd node && make install
+
+node: node-git
+ ln -vsnf $< $@
+
+node-git:
+ git clone https://github.com/joyent/node node-git
+
+node-%: /usr/bin/curl
+ curl http://nodejs.org/dist/$@.tar.gz | tar zx
+
+/usr/bin/curl:
+ apt-get install --yes curl