summaryrefslogtreecommitdiff
path: root/deps/npm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/Makefile')
-rw-r--r--deps/npm/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/deps/npm/Makefile b/deps/npm/Makefile
index 7b69df98fe..53ab16a290 100644
--- a/deps/npm/Makefile
+++ b/deps/npm/Makefile
@@ -14,7 +14,8 @@ html_docdeps = html/dochead.html \
cli_mandocs = $(shell find doc/cli -name '*.md' \
|sed 's|.md|.1|g' \
|sed 's|doc/cli/|man/man1/|g' ) \
- man/man1/npm-README.1
+ man/man1/npm-README.1 \
+ man/man1/npx.1
files_mandocs = $(shell find doc/files -name '*.md' \
|sed 's|.md|.5|g' \
@@ -56,7 +57,7 @@ latest:
node bin/npm-cli.js install -g -f npm ${NPMOPTS}
install: all
- node bin/npm-cli.js install -g -f ${NPMOPTS}
+ node bin/npm-cli.js install -g -f ${NPMOPTS} $(shell node bin/npm-cli.js pack | tail -1)
# backwards compat
dev: install
@@ -96,6 +97,9 @@ man/man1/%.1: doc/cli/%.md scripts/doc-build.sh package.json
@[ -d man/man1 ] || mkdir -p man/man1
scripts/doc-build.sh $< $@
+man/man1/npx.1: node_modules/libnpx/libnpx.1
+ cat $< | sed s/libnpx/npx/ > $@
+
man/man5/npm-json.5: man/man5/package.json.5
cp $< $@