Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision d3ae5186a61538155b4e5beb478efaf6e5ae0bd9 authored by Alexandre Fayolle on 30 September 2009, 10:55:17 UTC, committed by Alexandre Fayolle on 30 September 2009, 10:55:17 UTC
1 parent 0d095ed
Tip revision: d3ae5186a61538155b4e5beb478efaf6e5ae0bd9 authored by Alexandre Fayolle on 30 September 2009, 10:55:17 UTC
added instructions for enabling hg qv
added instructions for enabling hg qv
Tip revision: d3ae518
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 ...