view doc/Makefile @ 496:6ce95a04999d

[PATCH] simplify init -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] simplify init From: Bryan O'Sullivan <bos@serpentine.com> Remove source directory option from "hg init". manifest hash: 2ace7b16c962fb434340b937fbcd494f3098a85f -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCwQG/ywK+sNU5EO8RArbCAJ9DG45GepMI0Z9KWXqV8gmEbV1WfwCgotih LGAkD8iTfOLn7HIPVqt9FWY= =65uW -----END PGP SIGNATURE-----
author mpm@selenic.com
date Mon, 27 Jun 2005 23:52:31 -0800
parents f8cb8d082d40
children efa4a7e2f322
line wrap: on
line source


SOURCES=$(wildcard *.1.txt)
MAN=$(SOURCES:%.1.txt=%.1)
HTML=$(SOURCES:%.1.txt=%.1.html)

all: man

man: $(MAN)

html: $(HTML)

%.1: %.1.xml
	xmlto man $*.1.xml

%.1.xml: %.1.txt
	asciidoc -d manpage -b docbook $*.1.txt

%.1.html: %.1.txt
	asciidoc -b html $*.1.txt

clean:
	$(RM) $(MAN) $(MAN:%.1=%.1.xml) $(MAN:%.1=%.1.html)