Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision 77c3184c6f4a1d5e2676c7ac1dc296d7585eab77 authored by Aurelien Campeas on 20 May 2011, 12:00:39 UTC, committed by Aurelien Campeas on 20 May 2011, 12:00:39 UTC
1 parent 7952e85
Tip revision: 77c3184c6f4a1d5e2676c7ac1dc296d7585eab77 authored by Aurelien Campeas on 20 May 2011, 12:00:39 UTC
[quickbar] avoid unicode decode error which breaks/stops the search
[quickbar] avoid unicode decode error which breaks/stops the search
Tip revision: 77c3184
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 ...