Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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