Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision 58b1a648975207645af64f9c6e477989b3306c45 authored by Mads Kiilerich on 03 April 2020, 23:50:32 UTC, committed by Mads Kiilerich on 03 April 2020, 23:50:32 UTC
1 parent 038eb0a
Tip revision: 58b1a648975207645af64f9c6e477989b3306c45 authored by Mads Kiilerich on 03 April 2020, 23:50:32 UTC
qt5: fix imports - primarily additionally import of QtWidgets
qt5: fix imports - primarily additionally import of QtWidgets
Tip revision: 58b1a64
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 ...