Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision bac1db789790047da3b0796adc01e14cd4a603fa authored by David Douard on 20 January 2010, 19:04:53 UTC, committed by David Douard on 20 January 2010, 19:04:53 UTC
1 parent 95d3771
Tip revision: bac1db789790047da3b0796adc01e14cd4a603fa authored by David Douard on 20 January 2010, 19:04:53 UTC
Update copyright
Update copyright
Tip revision: bac1db7
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 ...