summaryrefslogtreecommitdiffstats
path: root/node
diff options
context:
space:
mode:
authoruser <user@bergwerk>2011-06-19 23:42:50 +0000
committeruser <user@bergwerk>2011-06-19 23:45:37 +0000
commit456efb1fd9817796e7cf70fc7113e2c3a2999e51 (patch)
tree04d8e0a3437b1cf073bd0fdc6040feb997108f73 /node
parenta1aa08e6bab8e686a11504104bda9aecf7be8cdc (diff)
node: install curl
Diffstat (limited to 'node')
-rw-r--r--node/Makefile24
1 files changed, 20 insertions, 4 deletions
diff --git a/node/Makefile b/node/Makefile
index 6428ff0f..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-%:
+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