diff options
author | isaacs <i@izs.me> | 2010-05-03 10:48:56 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-05-03 10:48:56 +0400 |
commit | a179be62b8c2c273b7eb78d16dc1df92b2443b44 (patch) | |
tree | 4f991102c401b43606731a4fe2e7dcb2e79bf437 /Makefile | |
parent | 0d86a97ff3d514c19b5a6cd99a60e14f6c918686 (diff) |
Handle docs better so that the installed docs are always in sync with the active program
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 4 insertions, 16 deletions
@@ -4,28 +4,16 @@ docs = $(shell ls doc/*.md \ |sed 's|doc/|man/|g' \ ) -install: doc_install - node install-npm.js - -doc_install: doc - cd man && \ - for d in $(shell ls *.1); do \ - cp man/$$d /usr/local/share/man/man1/npm-$$d; \ - done; - -clean: - rm -r man - -uninstall: clean - rm /usr/local/share/man/man1/npm{-*,}.1 - @echo TODO - npm uninstall itself +install: + @node install-npm.js man: mkdir man doc: man $(docs) + true man/%.1: doc/%.md ronn --roff $< > $@ -.PHONY: install doc clean uninstall doc_install +.PHONY: install doc clean uninstall |