Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (34 sloc) 0.858 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' \
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs th...
isaacs authored
4 |sed 's|doc/|man1/|g' \
de338f9 @isaacs Support subfolders in the man/doc files
isaacs authored
5 )
6 doc_subfolders = $(shell find doc -type d \
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs th...
isaacs authored
7 |sed 's|doc/|man1/|g' \
de338f9 @isaacs Support subfolders in the man/doc files
isaacs authored
8 )
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
9
c371bd2 @isaacs Change "install-stable" to "install" and "install" to "install-dev"
isaacs authored
10 install:
e7d403e @isaacs Change the way that cli.js is run to hopefully work on Cygwin
isaacs authored
11 node cli.js install npm
743d387 @isaacs Improve install process.
isaacs authored
12
c371bd2 @isaacs Change "install-stable" to "install" and "install" to "install-dev"
isaacs authored
13 dev:
e0c6abb @isaacs Add 'clean' make target
isaacs authored
14 node cli.js install
743d387 @isaacs Improve install process.
isaacs authored
15
db9ee01 @isaacs clean when linking
isaacs authored
16 link: uninstall
e0c6abb @isaacs Add 'clean' make target
isaacs authored
17 node cli.js link
18
19 clean: uninstall
743d387 @isaacs Improve install process.
isaacs authored
20
21 uninstall:
e7d403e @isaacs Change the way that cli.js is run to hopefully work on Cygwin
isaacs authored
22 node cli.js cache clean
23 node cli.js rm npm
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
24
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs th...
isaacs authored
25 man: man1
26
27 man1: $(doc_subfolders)
28 @if ! test -d man1 ; then mkdir -p man1 ; fi
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
29
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs th...
isaacs authored
30 doc: man1 $(docs)
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
31
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
32 # use `npm install ronn` for this to work.
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs th...
isaacs authored
33 man1/%.1: doc/%.md
9e87e14 @isaacs Use `npm install ronn` instead of `gem install ronn`
isaacs authored
34 ronn --roff $< > $@
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
35
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs th...
isaacs authored
36 man1/%/: doc/%/
de338f9 @isaacs Support subfolders in the man/doc files
isaacs authored
37 @if ! test -d $@ ; then mkdir -p $@ ; fi
38
90c9ec8 @isaacs Make test (quietly)
isaacs authored
39 test:
40 ./test/run.sh
41
2d27e74 @isaacs Add a 'publish' make target
isaacs authored
42 publish:
43 [ "$(shell cat .git/HEAD)" = "ref: refs/heads/master" ] \
44 && git tag -s -m v$(shell npm -v) v$(shell npm -v) \
45 && git push origin master \
46 && npm publish
47
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs th...
isaacs authored
48 .PHONY: install install-dev link doc clean uninstall test man
Something went wrong with that request. Please try again.