Renamed reST files to *.txt and added index.txt which will make it easy to generate a web page.
This commit is contained in:
35
Makefile
35
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user