Staging
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision 5c947c04cb80ec892ecbe2f16d82640b651ee2db authored by Mads Kiilerich on 04 April 2020, 00:13:59 UTC, committed by Mads Kiilerich on 04 April 2020, 00:13:59 UTC
This will temporarily leave things inconsistent, misnamed and broken ... but
the migration steps will be easier to review and give more useful history.
1 parent 43b011f
Raw File
Tip revision: 5c947c04cb80ec892ecbe2f16d82640b651ee2db authored by Mads Kiilerich on 04 April 2020, 00:13:59 UTC
qt5: trivial renaming from PyQt4 to PyQt5
Tip revision: 5c947c0
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)
back to top