doc/Makefile
author Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl>
Tue, 05 Jul 2005 18:23:34 -0800
changeset 631 a287f6cd9c6b
parent 465 f8cb8d082d40
child 671 efa4a7e2f322
permissions -rw-r--r--
Update documentation of hg tag # HG changeset patch # User Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl> # Node ID 8fc9bfabae06cba91b05c265545bcce2654dab2f # Parent 7369ec5d93f2ffd490a43970edd9adf8d2bbe269 Update documentation of hg tag This updates the FAQ, manpage and adds hg tag to the list of commands in README. Index: hg/README ===================================================================
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
465
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     1
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     2
SOURCES=$(wildcard *.1.txt)
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     3
MAN=$(SOURCES:%.1.txt=%.1)
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     4
HTML=$(SOURCES:%.1.txt=%.1.html)
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     5
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     6
all: man
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     7
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     8
man: $(MAN)
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     9
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    10
html: $(HTML)
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    11
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    12
%.1: %.1.xml
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    13
	xmlto man $*.1.xml
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    14
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    15
%.1.xml: %.1.txt
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    16
	asciidoc -d manpage -b docbook $*.1.txt
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    17
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    18
%.1.html: %.1.txt
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    19
	asciidoc -b html $*.1.txt
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    20
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    21
clean:
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    22
	$(RM) $(MAN) $(MAN:%.1=%.1.xml) $(MAN:%.1=%.1.html)