Renamed reST files to *.txt and added index.txt which will make it easy to generate a web page.

This commit is contained in:
Svend Sorensen
2004-09-16 10:50:32 +00:00
parent e89529af45
commit 1fcbaf53d4
7 changed files with 128 additions and 30 deletions

View File

@@ -1,6 +1,39 @@
SUBDIRS= lib tools man
all install uninstall clean:
all install uninstall:
for dir in $(SUBDIRS) ; do \
(cd $$dir && $(MAKE) $@) ; \
done
# reStructuredText Makefile
RST2HTML= rst2html.py
RST2LATEX= rst2latex.py
LATEX2PDF= pdflatex
RSTFILES= $(wildcard *.txt)
HTMLFILES= $(RSTFILES:.txt=.html)
LATEXFILES= $(RSTFILES:.txt=.tex)
PDFFILES= $(RSTFILES:.txt=.pdf)
all: html pdf
html: $(HTMLFILES)
latex: $(LATEXFILES)
pdf: $(PDFFILES)
%.html: %.txt
$(RST2HTML) $< > $@
%.tex: %.txt
$(RST2LATEX) $< > $@
%.pdf: %.tex
$(LATEX2PDF) $<
clean:
for dir in $(SUBDIRS) ; do \
(cd $$dir && $(MAKE) $@) ; \
done
rm -f $(HTMLFILES) $(LATEXFILES) $(PDFFILES)
rm -f *.aux *.log *.out