summaryrefslogtreecommitdiffstats
path: root/node/Makefile
blob: 20e15c7005af23cb42370b804ddc9d97bf3f977b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24


.PHONY: all build install

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