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>2013-07-12 23:11:14 +0400
committerisaacs <i@izs.me>2013-07-12 23:11:14 +0400
commita4c9bab52749d1cc870f5e3f1cea5674f6acee3d (patch)
tree1c6190e7471f0698b2e64659e65b8afb47035f82 /Makefile
parent388c0d5a46fee64da8bff73ebcb378a47aef2c63 (diff)
Avoid doc collisions on npm version upgrade
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 01228c1cd..28c7ff6b3 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ files_mandocs = $(shell find doc/files -name '*.md' \
misc_mandocs = $(shell find doc/misc -name '*.md' \
|sed 's|.md|.7|g' \
|sed 's|doc/misc/|man/man7/|g' ) \
- man/man7/index.7
+ man/man7/npm-index.7
cli_htmldocs = $(shell find doc/cli -name '*.md' \
|sed 's|.md|.html|g' \
@@ -61,7 +61,7 @@ latest:
@echo "in this folder that you're looking at right now."
node cli.js install -g -f npm
-install: all
+install: docclean all
node cli.js install -g -f
# backwards compat
@@ -70,7 +70,7 @@ dev: install
link: uninstall
node cli.js link -f
-clean: doc-clean uninstall
+clean: ronnclean doc-clean uninstall
rm npmrc
node cli.js cache clean
@@ -79,15 +79,16 @@ uninstall:
doc: $(mandocs) $(htmldocs)
+ronnclean:
+ rm -rf node_modules/ronn node_modules/.bin/ronn .building_ronn
+
docclean: doc-clean
doc-clean:
rm -rf \
- node_modules/ronn \
- node_modules/.bin/ronn \
.building_ronn \
html/doc \
html/api \
- man/man*
+ man
# use `npm install ronn` for this to work.
man/man1/npm-README.1: README.md scripts/doc-build.sh package.json
@@ -150,6 +151,7 @@ html/doc/misc/%.html: doc/misc/%.md $(html_docdeps)
+ronn: node_modules/.bin/ronn
node_modules/.bin/ronn:
node cli.js install ronn