1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
# Makefile to build Zope-DevGuide
# Andreas Tille <tille@debian.org> Thu, 29 Nov 2001 13:45:27 +0100
# GPL
PYTHONPATH=/usr/lib/python2.1:/usr/lib/zope/lib/python/
PYTHON=/usr/bin/python
HTML= Acquisition.html \
AppendixA.html \
AppendixB.html \
ComponentsAndInterfaces.html \
Introduction.html \
ObjectPublishing.html \
Persistence.html \
Products.html \
Security.html \
TestingAndDebugging.html
XML= Acquisition.xml \
AppendixA.xml \
AppendixB.xml \
ComponentsAndInterfaces.xml \
Introduction.xml \
ObjectPublishing.xml \
Persistence.xml \
Products.xml \
Security.xml \
TestingAndDebugging.xml
.SUFFIXES: .stx .html .xml
.stx.html:
PYTHONPATH=$(PYTHONPATH) $(PYTHON) html.py $<
.stx.xml:
# PYTHONPATH=$(PYTHONPATH) $(PYTHON) docbook.py $<
echo Sorry. The docbook.py file from zope-book is not fit to translate tope-devguide
echo Unable to build $@.
all: html xml
html: $(HTML)
xml: $(XML)
DevGuide.pdf: $(HTML)
$(PYTHON) pdf.py $^
Introduction.html: Introduction.stx
PYTHONPATH=$(PYTHONPATH) $(PYTHON) html.py $<
cat $@ | \
sed "s?\(<dt>.*\)\(Components and Interfaces\)\(.*</dt>\)?\1<a href=\"ComponentsAndInterfaces.html\">\2</a>\3?" | \
sed "s?\(<dt>.*\)\(Object Publishing\)\(.*</dt>\)?\1<a href=\"ObjectPublishing.html\">\2</a>\3?" | \
sed "s?\(<dt>.*\)\(Zope Products\)\(.*</dt>\)?\1<a href=\"Products.html\">\2</a>\3?" | \
sed "s?\(<dt>.*\)\(Persistent Components\)\(.*</dt>\)?\1<a href=\"Persistence.html\">\2</a>\3?" | \
sed "s?\(<dt>.*\)\(Acquisition\)\(.*</dt>\)?\1<a href=\"Acquisition.html\">\2</a>\3?" | \
sed "s?\(<dt>.*\)\(Security\)\(.*</dt>\)?\1<a href=\"Security.html\">\2</a>\3?" | \
sed "s?\(<dt>.*\)\(Debugging and Testing\)\(.*</dt>\)?\1<a href=\"TestingAndDebugging.html\">\2</a>\3?" | \
sed "s?\(</p>\)\(</body>\)?\1<p><h4>Appendix A: <a href="AppendixA.html">Zope Core Permissions</a></h4><p><p><h4>Appendix B: <a href="AppendixB.html">Zope Directories</a></h4><p>\2?" | \
cat > $@_
mv $@_ $@
Acquisition.html: Acquisition.stx
AppendixA.html: AppendixA.stx
AppendixB.html: AppendixB.stx
ComponentsAndInterfaces.html: ComponentsAndInterfaces.stx
Introduction.html: Introduction.stx
ObjectPublishing.html: ObjectPublishing.stx
Persistence.html: Persistence.stx
Products.html: Products.stx
Security.html: Security.stx
TestingAndDebugging.html: TestingAndDebugging.stx
Acquisition.xml: Acquisition.stx
AppendixA.xml: AppendixA.stx
AppendixB.xml: AppendixB.stx
ComponentsAndInterfaces.xml: ComponentsAndInterfaces.stx
Introduction.xml: Introduction.stx
ObjectPublishing.xml: ObjectPublishing.stx
Persistence.xml: Persistence.stx
Products.xml: Products.stx
Security.xml: Security.stx
TestingAndDebugging.xml: TestingAndDebugging.stx
clean:
rm -rf *.xml *.html *.pdf
|