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>2010-05-03 10:48:56 +0400
committerisaacs <i@izs.me>2010-05-03 10:48:56 +0400
commita179be62b8c2c273b7eb78d16dc1df92b2443b44 (patch)
tree4f991102c401b43606731a4fe2e7dcb2e79bf437 /Makefile
parent0d86a97ff3d514c19b5a6cd99a60e14f6c918686 (diff)
Handle docs better so that the installed docs are always in sync with the active program
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 4 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index c65df9f13..b0470530d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,28 +4,16 @@ docs = $(shell ls doc/*.md \
|sed 's|doc/|man/|g' \
)
-install: doc_install
- node install-npm.js
-
-doc_install: doc
- cd man && \
- for d in $(shell ls *.1); do \
- cp man/$$d /usr/local/share/man/man1/npm-$$d; \
- done;
-
-clean:
- rm -r man
-
-uninstall: clean
- rm /usr/local/share/man/man1/npm{-*,}.1
- @echo TODO - npm uninstall itself
+install:
+ @node install-npm.js
man:
mkdir man
doc: man $(docs)
+ true
man/%.1: doc/%.md
ronn --roff $< > $@
-.PHONY: install doc clean uninstall doc_install
+.PHONY: install doc clean uninstall