Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-04-21 11:11:55 +0400
committerisaacs <i@izs.me>2011-04-21 11:11:55 +0400
commit4f0d3340fb9b10dd5ffd772e509fec5ccf1f4f50 (patch)
treee4ff03e4883e3c2a437f2a2e05db70ef3d186b6c /Makefile
parentf32af473723d4227b5ebd8534323524c5183839b (diff)
Less warning, better style
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 73913f684..cce45b19f 100644
--- a/Makefile
+++ b/Makefile
@@ -32,12 +32,12 @@ clean: uninstall
uninstall: submodules
node cli.js cache clean
- node cli.js rm npm -g -f
+ node cli.js rm npm -g -f --loglevel error
man: man1
man1: $(doc_subfolders)
- @if ! test -d man1 ; then mkdir -p man1 ; fi
+ [ -d man1 ] || mkdir -p man1
doc: man1 $(docs)
@@ -47,18 +47,18 @@ man1/%.1: doc/%.md
./node_modules/.bin/ronn --roff $< > $@
man1/%/: doc/%/
- @if ! test -d $@ ; then mkdir -p $@ ; fi
+ @[ -d $@ ] || mkdir -p $@
test: submodules
node cli.js test
version: link
- git add package.json \
- && git ci -m v$(shell npm -v)
+ git add package.json &&\
+ git ci -m v$(shell npm -v)
publish: link
- git tag -s -m v$(shell npm -v) v$(shell npm -v) \
- && git push origin master \
- && npm publish
+ git tag -s -m v$(shell npm -v) v$(shell npm -v) &&\
+ git push origin master &&\
+ npm publish
.PHONY: latest install dev link doc clean uninstall test man