Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (36 sloc) 0.961 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' \
0e151fc @isaacs build submodules in make process
isaacs authored
4 |sed 's|doc/|man1/|g' )
5
de338f9 @isaacs Support subfolders in the man/doc files
isaacs authored
6 doc_subfolders = $(shell find doc -type d \
0e151fc @isaacs build submodules in make process
isaacs authored
7 |sed 's|doc/|man1/|g' )
8
9 submodules:
8b40275 @isaacs Closes GH-618 Don't do git on non-git folder
isaacs authored
10 ! [ -d .git ] || git submodule update --init
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
11
0e151fc @isaacs build submodules in make process
isaacs authored
12 install: submodules
e7d403e @isaacs Change the way that cli.js is run to hopefully work on Cygwin
isaacs authored
13 node cli.js install npm
743d387 @isaacs Improve install process.
isaacs authored
14
0e151fc @isaacs build submodules in make process
isaacs authored
15 dev: submodules
e0c6abb @isaacs Add 'clean' make target
isaacs authored
16 node cli.js install
743d387 @isaacs Improve install process.
isaacs authored
17
db9ee01 @isaacs clean when linking
isaacs authored
18 link: uninstall
e0c6abb @isaacs Add 'clean' make target
isaacs authored
19 node cli.js link
20
21 clean: uninstall
743d387 @isaacs Improve install process.
isaacs authored
22
0e151fc @isaacs build submodules in make process
isaacs authored
23 uninstall: submodules
e7d403e @isaacs Change the way that cli.js is run to hopefully work on Cygwin
isaacs authored
24 node cli.js cache clean
f69ebe5 @isaacs Remove npm recursively on make uninstall
isaacs authored
25 node cli.js rm npm -r
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
26
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs th...
isaacs authored
27 man: man1
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 th...
isaacs authored
32 doc: man1 $(docs)
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
33
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
34 # 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
35 man1/%.1: doc/%.md
9e87e14 @isaacs Use `npm install ronn` instead of `gem install ronn`
isaacs authored
36 ronn --roff $< > $@
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
37
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs th...
isaacs authored
38 man1/%/: doc/%/
de338f9 @isaacs Support subfolders in the man/doc files
isaacs authored
39 @if ! test -d $@ ; then mkdir -p $@ ; fi
40
0e151fc @isaacs build submodules in make process
isaacs authored
41 test: submodules
90c9ec8 @isaacs Make test (quietly)
isaacs authored
42 ./test/run.sh
43
5846adf @isaacs version bumper
isaacs authored
44 version: link
45 git add package.json \
46 && git ci -m v$(shell npm -v)
47
48 publish: link
05f7ff1 @isaacs Allow publishing from non-master
isaacs authored
49 git tag -s -m v$(shell npm -v) v$(shell npm -v) \
2d27e74 @isaacs Add a 'publish' make target
isaacs authored
50 && git push origin master \
51 && npm publish
52
dbee5c3 @isaacs Change the way npm help works, so that it will work with man programs th...
isaacs authored
53 .PHONY: install install-dev link doc clean uninstall test man
Something went wrong with that request. Please try again.