Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision 5aa51b947c9b6bf9e87e30cad1b3e7036707d976 authored by David Douard on 05 June 2009, 14:45:15 UTC, committed by David Douard on 05 June 2009, 14:45:15 UTC
1 parent ee40b4c
Tip revision: 5aa51b947c9b6bf9e87e30cad1b3e7036707d976 authored by David Douard on 05 June 2009, 14:45:15 UTC
build man page in setup.py build
build man page in setup.py build
Tip revision: 5aa51b9
Makefile
SOURCES=$(wildcard *.[0-9].txt)
MAN=$(SOURCES:%.txt=%)
HTML=$(SOURCES:%.txt=%.html)
PREFIX=/usr/local
MANDIR=$(PREFIX)/man
INSTALL=install -c
all: man html
man: $(MAN)
html: $(HTML)
%: %.xml
xmlto man $*.xml
%.xml: %.txt
asciidoc -d manpage -b docbook $*.txt
%.html: %.txt
asciidoc -b html4 $*.txt || asciidoc -b html $*.txt
install: man
for i in $(MAN) ; do \
subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \
mkdir -p $(MANDIR)/$$subdir ; \
$(INSTALL) $$i $(MANDIR)/$$subdir ; \
done
clean:
$(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html)
Computing file changes ...