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-09-22 03:25:47 +0400
committerisaacs <i@izs.me>2010-09-22 03:25:47 +0400
commitdbee5c3b14f10fac8b15e661a8e5ed72d4e147c0 (patch)
treeec68a7ff9638901db2379e9bc20fca56143d5945 /Makefile
parentf9071cfbfd5b3316d9f4f18e06e75358bb757703 (diff)
Change the way npm help works, so that it will work with man programs that stubbornly refuse to take a troff file as an argument
That is, make it work on Solaris.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 54e7dffb2..a4b2d9afd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
docs = $(shell find doc -name '*.md' \
|sed 's|.md|.1|g' \
- |sed 's|doc/|man/|g' \
+ |sed 's|doc/|man1/|g' \
)
doc_subfolders = $(shell find doc -type d \
- |sed 's|doc/|man/|g' \
+ |sed 's|doc/|man1/|g' \
)
install:
@@ -23,20 +23,23 @@ uninstall:
node cli.js cache clean
node cli.js rm npm
-man: $(doc_subfolders)
- @if ! test -d man ; then mkdir -p man ; fi
+man: man1
+ @true
+
+man1: $(doc_subfolders)
+ @if ! test -d man1 ; then mkdir -p man1 ; fi
-doc: man $(docs)
+doc: man1 $(docs)
@true
# use `npm install ronn` for this to work.
-man/%.1: doc/%.md
+man1/%.1: doc/%.md
ronn --roff $< > $@
-man/%/: doc/%/
+man1/%/: doc/%/
@if ! test -d $@ ; then mkdir -p $@ ; fi
test:
./test/run.sh
-.PHONY: install install-dev link doc clean uninstall test
+.PHONY: install install-dev link doc clean uninstall test man