Staging
v0.8.1
v0.8.1
https://foss.heptapod.net/mercurial/hgview
Revision f654669f687eb5ab816aa5d082b72a16b03e7c1b authored by David Douard on 04 June 2009, 21:26:20 UTC, committed by David Douard on 04 June 2009, 21:26:20 UTC
1 parent ad78369
Tip revision: f654669f687eb5ab816aa5d082b72a16b03e7c1b authored by David Douard on 04 June 2009, 21:26:20 UTC
fix pkginfo (do not distribute .ui files anymore)
fix pkginfo (do not distribute .ui files anymore)
Tip revision: f654669
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 ...