Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision 93a103e881fa380c63132b9718a1b65635f5a4b5 authored by Pierre-Yves David on 06 August 2012, 19:39:55 UTC, committed by Pierre-Yves David on 06 August 2012, 19:39:55 UTC
This import is critical for qt initialization (at least on Mac os X)
1 parent feb406a
Tip revision: 93a103e881fa380c63132b9718a1b65635f5a4b5 authored by Pierre-Yves David on 06 August 2012, 19:39:55 UTC
Backed out changeset 7c040cd43703
Backed out changeset 7c040cd43703
Tip revision: 93a103e
Makefile
SOURCES=hgview.1.txt
#$(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 -o $@ $<
%.html: %.txt
asciidoc -b html4 -o $@ $< || asciidoc -b html -o $@ $<
install: man
for i in $(MAN) ; do \
subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \
$(INSTALL) -d $(DESTDIR)$(MANDIR)/$$subdir && \
$(INSTALL) $$i $(DESTDIR)$(MANDIR)/$$subdir ; \
done
clean:
$(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html)
Computing file changes ...