Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 46 lines (32 sloc) 0.697 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…
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…
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
16 link:
e0c6abb @isaacs Add 'clean' make target
isaacs authored
17 node cli.js link
18
19 clean: uninstall
b1ff390 @isaacs freakin make.
isaacs authored
20 true
743d387 @isaacs Improve install process.
isaacs authored
21
22 uninstall:
e7d403e @isaacs Change the way that cli.js is run to hopefully work on Cygwin
isaacs authored
23 node cli.js cache clean
24 node cli.js rm npm
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
25
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs…
isaacs authored
26 man: man1
27 @true
28
29 man1: $(doc_subfolders)
30 @if ! test -d man1 ; then mkdir -p man1 ; fi
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
31
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs…
isaacs authored
32 doc: man1 $(docs)
e3e176c @isaacs Don't echo the "true" stuffs
isaacs authored
33 @true
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
34
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
35 # use `npm install ronn` for this to work.
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs…
isaacs authored
36 man1/%.1: doc/%.md
9e87e14 @isaacs Use `npm install ronn` instead of `gem install ronn`
isaacs authored
37 ronn --roff $< > $@
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
38
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs…
isaacs authored
39 man1/%/: doc/%/
de338f9 @isaacs Support subfolders in the man/doc files
isaacs authored
40 @if ! test -d $@ ; then mkdir -p $@ ; fi
41
90c9ec8 @isaacs Make test (quietly)
isaacs authored
42 test:
43 ./test/run.sh
44
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs…
isaacs authored
45 .PHONY: install install-dev link doc clean uninstall test man
Something went wrong with that request. Please try again.