Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision f304aff71be94a9431103a98c034a354211e311d authored by Alain Leufroy on 28 January 2012, 05:05:18 UTC, committed by Alain Leufroy on 28 January 2012, 05:05:18 UTC
1 parent 3a9f205
Tip revision: f304aff71be94a9431103a98c034a354211e311d authored by Alain Leufroy on 28 January 2012, 05:05:18 UTC
[qt] add icon to "show/hide" hidden changesets action (wip #87901)
[qt] add icon to "show/hide" hidden changesets action (wip #87901)
Tip revision: f304aff
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 ...