Staging
v0.8.1
v0.8.1
https://foss.heptapod.net/mercurial/hgview
Tip revision: 10aa08a03c7c901ab7b7c9a789aec99cb448ae92 authored by Pierre-Yves David on 19 November 2012, 14:10:17 UTC
[setup/py2exe] trick py2exe into including mercurial extension
[setup/py2exe] trick py2exe into including mercurial extension
Tip revision: 10aa08a
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)