Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 39 lines (27 sloc) 0.686 kb
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
1
de338f9 @isaacs Support subfolders in the man/doc files
isaacs authored
2 docs = $(shell find doc -name '*.md' \
3 |sed 's|.md|.1|g' \
4 |sed 's|doc/|man/|g' \
5 )
6 doc_subfolders = $(shell find doc -type d \
7 |sed 's|doc/|man/|g' \
8 )
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
9
743d387 @isaacs Improve install process.
isaacs authored
10 install-stable:
11 ./cli.js --auto-activate always install npm@stable
12
a179be6 @isaacs Handle docs better so that the installed docs are always in sync with…
isaacs authored
13 install:
743d387 @isaacs Improve install process.
isaacs authored
14 ./cli.js --auto-activate always install .
15
16 link:
17 ./cli.js --auto-activate always link .
18
19 uninstall:
3d290ff @isaacs Remove the cache when uninstalling
isaacs authored
20 ./cli.js cache clean
13b6bec @isaacs "make uninstall" support
isaacs authored
21 ./cli.js rm npm
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
22
de338f9 @isaacs Support subfolders in the man/doc files
isaacs authored
23 man: $(doc_subfolders)
24 @if ! test -d man ; then mkdir -p man ; fi
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
25
492924c @isaacs Move more of the documentation to ronn's domain
isaacs authored
26 doc: man $(docs)
e3e176c @isaacs Don't echo the "true" stuffs
isaacs authored
27 @true
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
28
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
29 man/%.1: doc/%.md
cea2bf8 @isaacs Add the --pipe config to ronn
isaacs authored
30 ronn --roff --pipe $< > $@
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
31
de338f9 @isaacs Support subfolders in the man/doc files
isaacs authored
32 man/%/: doc/%/
33 @if ! test -d $@ ; then mkdir -p $@ ; fi
34
90c9ec8 @isaacs Make test (quietly)
isaacs authored
35 test:
36 ./test/run.sh
37
38 .PHONY: install install-stable link doc clean uninstall test
Something went wrong with that request. Please try again.