Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (17 sloc) 0.431 kB
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
1
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
2 docs = $(shell ls doc/*.md | sed 's|.md|.1|g' | sed 's|doc/|man/|g')
3
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
4 install: doc
5 node install-npm.js
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
6 cp man/npm.1 /usr/local/share/man/man1/npm.1
7
8 clean:
9 rm -r man
10
11 uninstall: clean
12 rm /usr/local/share/man/man1/npm.1
13 @echo TODO - npm uninstall itself
14
15 man:
16 mkdir man
17
18 doc: man man/npm.1 $(docs)
19
20 man/npm.1: README.md
21 ronn --roff README.md > $@
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
22
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
23 man/%.1: doc/%.md
24 ronn --roff $< > $@
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
25
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
26 .PHONY: install doc clean uninstall
Something went wrong with that request. Please try again.