Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 24 lines (15 sloc) 0.371 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
492924c @isaacs Move more of the documentation to ronn's domain
isaacs authored
18 doc: man $(docs)
c638e80 @isaacs Add a makefile to build the man page.
isaacs authored
19
86c296f @isaacs Add commands to make man files from the docs.
isaacs authored
20 man/%.1: doc/%.md
21 ronn --roff $< > $@
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 .PHONY: install doc clean uninstall
Something went wrong with that request. Please try again.