Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 40 lines (28 sloc) 0.647 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
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:
e7d403e @isaacs Change the way that cli.js is run to hopefully work on Cygwin
isaacs authored
14 node cli.js install .
743d387 @isaacs Improve install process.
isaacs authored
15
16 link:
e7d403e @isaacs Change the way that cli.js is run to hopefully work on Cygwin
isaacs authored
17 node cli.js link .
743d387 @isaacs Improve install process.
isaacs authored
18
19 uninstall:
e7d403e @isaacs Change the way that cli.js is run to hopefully work on Cygwin
isaacs authored
20 node cli.js cache clean
21 node 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
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
29 # use `npm install ronn` for this to work.
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
30 man/%.1: doc/%.md
9e87e14 @isaacs Use `npm install ronn` instead of `gem install ronn`
isaacs authored
31 ronn --roff $< > $@
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
32
de338f9 @isaacs Support subfolders in the man/doc files
isaacs authored
33 man/%/: doc/%/
34 @if ! test -d $@ ; then mkdir -p $@ ; fi
35
90c9ec8 @isaacs Make test (quietly)
isaacs authored
36 test:
37 ./test/run.sh
38
c371bd2 @isaacs Change "install-stable" to "install" and "install" to "install-dev"
isaacs authored
39 .PHONY: install install-dev link doc clean uninstall test
Something went wrong with that request. Please try again.