From: JF Ding Date: Thu, 27 Oct 2011 09:16:35 +0000 (+0800) Subject: Makefile: update manpage automatically X-Git-Tag: 0.1~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f06af2c4a7bd7e36863cf28f079cbc326b32d1e;p=tools%2Fmic.git Makefile: update manpage automatically --- diff --git a/Makefile b/Makefile index e3e5292..81659ab 100644 --- a/Makefile +++ b/Makefile @@ -17,9 +17,10 @@ endif all: $(PYTHON) setup.py build -dist-common: +dist-common: man git archive --format=tar --prefix=$(PKGNAME)-$(TAGVER)/ $(TAG) | tar xpf - git show $(TAG) --oneline | head -1 > $(PKGNAME)-$(TAGVER)/commit-id + mkdir $(PKGNAME)-$(TAGVER)/doc; mv mic.1 $(PKGNAME)-$(TAGVER)/doc dist-bz2: dist-common tar jcpf $(PKGNAME)-$(TAGVER).tar.bz2 $(PKGNAME)-$(TAGVER) @@ -29,6 +30,9 @@ dist-gz: dist-common tar zcpf $(PKGNAME)-$(TAGVER).tar.gz $(PKGNAME)-$(TAGVER) rm -rf $(PKGNAME)-$(TAGVER) +man: README.rst + rst2man $< >mic.1 + install: all $(PYTHON) setup.py install --prefix=$(DESTDIR)/$(PREFIX) @@ -36,7 +40,10 @@ develop: all $(PYTHON) setup.py develop clean: + rm -f *.tar.gz + rm -f *.tar.bz2 rm -f tools/*.py[co] + rm -f mic.1 rm -rf *.egg-info rm -rf build/ rm -rf dist/