~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile.pretty

  • Committer: Aaron Bentley
  • Date: 2006-11-05 21:20:58 UTC
  • mto: This revision was merged to the branch mainline in revision 2127.
  • Revision ID: aaron.bentley@utoronto.ca-20061105212058-0bfe754be572d2c1
Add rule to copy files to HTMLDIR

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
HTMLDIR := html_docs
1
2
doc_dir := doc 
2
3
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir)))
3
4
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) doc/bzr_man.htm
4
 
docs: $(htm_files)
5
5
%.htm: %.txt doc/bazaar-vcs.org.kid
6
6
        python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid $*.txt $*.htm
7
 
 
 
7
html-docs: docs
 
8
docs: $(htm_files)
 
9
        python tools/win32/ostools.py copytodir $(htm_files) $(HTMLDIR)
8
10
doc/bzr_man.txt: bzrlib/builtins.py \
9
11
                 bzrlib/bundle/commands.py \
10
12
                 bzrlib/conflicts.py \
13
15
                 tools/doc_generate/__init__.py \
14
16
                 tools/doc_generate/autodoc_rstx.py
15
17
        python2.4 generate_docs.py -o doc/bzr_man.txt rstx
16