diff options
author | tv <tv@xso> | 2011-08-30 16:30:22 +0200 |
---|---|---|
committer | tv <tv@xso> | 2011-08-30 16:31:48 +0200 |
commit | 86b207f5cf9cb90ff1b37f90818b313f18cb1701 (patch) | |
tree | 2737f9229e4ee11fd209bcb4e62416f239492816 /node/Makefile | |
parent | b1f0a73e5810aed4fd78aad2bb55a8a67f76df5d (diff) |
//node/install: initial commit
This is because make IMOS! fucker... Now everything should be
enterprise, lol^_^
Diffstat (limited to 'node/Makefile')
-rw-r--r-- | node/Makefile | 44 |
1 files changed, 3 insertions, 41 deletions
diff --git a/node/Makefile b/node/Makefile index 0b7775ed..cbfa1e4a 100644 --- a/node/Makefile +++ b/node/Makefile @@ -1,46 +1,8 @@ -ifndef version - version := $(shell \ - curl -sS http://nodejs.org/ | \ - ../util/bin/hrefs | \ - sed -rn 's:.*node-(v[0-9.]+)\.tar\.gz:\1:p' | \ - sort | \ - tail -n 1) -endif - -export CPPFLAGS := -Wno-unused-but-set-variable - -.PHONY: all build install +.PHONY: all install all: @echo "You are made of stupid!"; exit 23 -build: out/node-$(version) - -install: out/node-$(version) - ln -vsnf ../node/$</bin/node ../bin/node - -out/node-%: src/node-% - cd $< && ./configure --prefix=$(PWD)/$@ - make -C $< - make -C $< install - -../bin/node: out/ - -src/node-git: src - cd src && \ - git clone https://github.com/joyent/node node-git - -src/node-%: src/node-%.tar.gz - cd src && tar xf node-$*.tar.gz - -.PRECIOUS: src/node-%.tar.gz -src/node-%.tar.gz: /usr/bin/curl src - { curl -o $@ http://nodejs.org/dist/node-$*.tar.gz && gzip -t $@; } || \ - { curl -o $@ http://nodejs.org/dist/$*/node-$*.tar.gz && gzip -t $@; } - -/usr/bin/curl: - apt-get install --yes curl - -src: - mkdir -v -p $@ +install: + ./install |