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-09-25 08:10:20 +0400
committerisaacs <i@izs.me>2011-09-25 08:10:20 +0400
commit88c9df2aaf99f0c8b868e2151eaa48018649820d (patch)
treec53cf024e65d483ae47f78ab5f7f6c51c4b11b66 /Makefile
parent1f678362d5dd1278a0759e7af7c187be8aec1c57 (diff)
Depending on a folder is dumb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 11aa027b6..136d0dc39 100644
--- a/Makefile
+++ b/Makefile
@@ -75,9 +75,11 @@ man/man1/README.1: README.md scripts/doc-build.sh package.json
scripts/doc-build.sh $< $@
man/man1/%.1: doc/cli/%.md scripts/doc-build.sh package.json
+ @[ -d man/man1 ] || mkdir -p man/man1
scripts/doc-build.sh $< $@
-man/man3/%.3: doc/api/%.md man/man3 node_modules/ronn
+man/man3/%.3: doc/api/%.md scripts/doc-build.sh package.json
+ @[ -d man/man3 ] || mkdir -p man/man3
scripts/doc-build.sh $< $@
html/doc/README.html: README.md html/dochead.html html/docfoot.html scripts/doc-build.sh package.json
@@ -96,12 +98,6 @@ doc: man
man: $(cli_docs) $(api_docs)
-man/man1:
- [ -d man/man1 ] || mkdir -p man/man1
-
-man/man3:
- [ -d man/man3 ] || mkdir -p man/man3
-
test: submodules
node cli.js test