Skip to content
This repository
Newer
Older
100644 65 lines (46 sloc) 1.385 kb
64b4d651 »
2011-02-22 explicitly set bash as the shell since the makefile uses bash-isms
1 SHELL = bash
2
de338f9a »
2010-07-05 Support subfolders in the man/doc files
3 docs = $(shell find doc -name '*.md' \
4 |sed 's|.md|.1|g' \
0e151fcf »
2011-02-18 build submodules in make process
5 |sed 's|doc/|man1/|g' )
6
de338f9a »
2010-07-05 Support subfolders in the man/doc files
7 doc_subfolders = $(shell find doc -type d \
0e151fcf »
2011-02-18 build submodules in make process
8 |sed 's|doc/|man1/|g' )
9
d7d8662b »
2011-02-22 Closes GH-609 `make install` installs current, not latest
10 # This is the default make target.
11 # Since 'make' typically does non-installation build stuff,
12 # it seems appropriate.
0e151fcf »
2011-02-18 build submodules in make process
13 submodules:
007fedb0 »
2011-07-16 Update submodules recursively in make
14 ! [ -d .git ] || git submodule update --init --recursive
86c296f2 »
2010-04-25 Add commands to make man files from the docs.
15
d7d8662b »
2011-02-22 Closes GH-609 `make install` installs current, not latest
16 latest: submodules
17 @echo "Installing latest published npm"
18 @echo "Use 'make install' or 'make link' to install the code"
19 @echo "in this folder that you're looking at right now."
4325dcc1 »
2011-07-16 fix make latest
20 node cli.js install -g -f npm
743d3872 »
2010-05-10 Improve install process.
21
d7d8662b »
2011-02-22 Closes GH-609 `make install` installs current, not latest
22 install: submodules
364dfc62 »
2011-04-04 Clobber in Makefile
23 node cli.js install -g -f
743d3872 »
2010-05-10 Improve install process.
24
d7d8662b »
2011-02-22 Closes GH-609 `make install` installs current, not latest
25 # backwards compat
26 dev: install
27
db9ee01f »
2010-10-28 clean when linking
28 link: uninstall
364dfc62 »
2011-04-04 Clobber in Makefile
29 node cli.js link -f
e0c6abb7 »
2010-09-02 Add 'clean' make target
30
31 clean: uninstall
c7ec9b50 »
2011-07-26 No need to clean cache as often, makes search slow
32 node cli.js cache clean
743d3872 »
2010-05-10 Improve install process.
33
0e151fcf »
2011-02-18 build submodules in make process
34 uninstall: submodules
4f0d3340 »
2011-04-21 Less warning, better style
35 node cli.js rm npm -g -f --loglevel error
86c296f2 »
2010-04-25 Add commands to make man files from the docs.
36
dbee5c3b »
2010-09-21 Change the way npm help works, so that it will work with man programs…
37 man: man1
38
39 man1: $(doc_subfolders)
4f0d3340 »
2011-04-21 Less warning, better style
40 [ -d man1 ] || mkdir -p man1
86c296f2 »
2010-04-25 Add commands to make man files from the docs.
41
dbee5c3b »
2010-09-21 Change the way npm help works, so that it will work with man programs…
42 doc: man1 $(docs)
c638e80b »
2010-04-24 Add a makefile to build the man page.
43
f2ccd178 »
2010-08-18 Use ronnjs instead of the ronn rubygem to build docs
44 # use `npm install ronn` for this to work.
dbee5c3b »
2010-09-21 Change the way npm help works, so that it will work with man programs…
45 man1/%.1: doc/%.md
7d44c118 »
2011-03-11 Don't install ronn for every doc
46 @[ -x ./node_modules/.bin/ronn ] || node cli.js install ronn
89458487 »
2011-03-10 A make command that works
47 ./node_modules/.bin/ronn --roff $< > $@
c638e80b »
2010-04-24 Add a makefile to build the man page.
48
dbee5c3b »
2010-09-21 Change the way npm help works, so that it will work with man programs…
49 man1/%/: doc/%/
4f0d3340 »
2011-04-21 Less warning, better style
50 @[ -d $@ ] || mkdir -p $@
de338f9a »
2010-07-05 Support subfolders in the man/doc files
51
0e151fcf »
2011-02-18 build submodules in make process
52 test: submodules
176f12e7 »
2011-04-13 Move test command into package.json
53 node cli.js test
90c9ec8e »
2010-07-03 Make test (quietly)
54
5846adf4 »
2011-01-11 version bumper
55 version: link
4f0d3340 »
2011-04-21 Less warning, better style
56 git add package.json &&\
57 git ci -m v$(shell npm -v)
5846adf4 »
2011-01-11 version bumper
58
59 publish: link
4f0d3340 »
2011-04-21 Less warning, better style
60 git tag -s -m v$(shell npm -v) v$(shell npm -v) &&\
61 git push origin master &&\
62 npm publish
2d27e741 »
2011-01-10 Add a 'publish' make target
63
d7d8662b »
2011-02-22 Closes GH-609 `make install` installs current, not latest
64 .PHONY: latest install dev link doc clean uninstall test man
Something went wrong with that request. Please try again.