grim/purple-objects-docbook

2fb5fa149030
Parents 8bb8457a16d3
Children 27c3ed94703a
Moved the book specific stuff to the xml directory
  • +3 -101
    Makefile
  • +27 -0
    xml/Makefile
  • --- a/Makefile Mon May 06 02:33:14 2013 -0500
    +++ b/Makefile Mon May 06 02:58:01 2013 -0500
    @@ -2,120 +2,22 @@
    TRANSFORM_OPTS=--nonet --xinclude
    OUTPUT=html/
    OUTPUT_GRAPHS=$(OUTPUT)graphs
    -BOOK=xml/purple-objects.xml
    SHEETS=\
    sheets/class.xsl \
    sheets/enum.xsl \
    sheets/purple-objects.xsl
    -BOOK_SOURCES=\
    - xml/about.xml \
    - xml/accounts.xml \
    - xml/ciphers.xml \
    - xml/connections.xml \
    - xml/conversations.xml \
    - xml/filetransfers.xml \
    - xml/graphs.xml \
    - xml/plugins.xml \
    - xml/plugin-loaders.xml \
    - xml/pounces.xml \
    - xml/proxies.xml \
    - xml/purple-objects.xml \
    - xml/revhistory.xml \
    - xml/whiteboards.xml
    -
    -BOOK_BUILT_SOURCES=\
    - xml/todo.xml
    -
    -HIERARCHIES=\
    - graphs/accounts.hierarchy \
    - graphs/blistnodes.hierarchy \
    - graphs/ciphers.hierarchy \
    - graphs/connections.hierarchy \
    - graphs/conversations-interfaces.hierarchy \
    - graphs/conversations-objects.hierarchy \
    - graphs/filetransfers.hierarchy \
    - graphs/hashes.hierarchy \
    - graphs/plugin-loaders.hierarchy \
    - graphs/plugins.hierarchy \
    - graphs/pounces.hierarchy \
    - graphs/proxies.hierarchy \
    - graphs/whiteboards.hierarchy
    -
    -CLASSES=\
    - graphs/example-class.class \
    - graphs/plugin.class \
    - graphs/plugin-info.class \
    - graphs/plugin-loader.class
    -
    -ENUMS=\
    - graphs/example-enum.enum \
    - graphs/plugin-state.enum
    -
    -KEYS=\
    - graphs/objects.key \
    - graphs/relationships.key
    -
    -#GRAPHS=$(HIERARCHIES:%.hierarchy=%.png) $(CLASSES:%.class=%.png) $(ENUMS:%.enum=%.png) $(KEYS:%.key=%.png)
    -
    ###############################################################################
    # basic rules
    ###############################################################################
    -all: xml/xml.stamp graphs/graphs.stamp dir.stamp $(SHEETS) $(BOOK_SOURCES)
    +all: $(SHEETS)
    $(MAKE) -C graphs
    + $(MAKE) -C xml
    clean:
    $(MAKE) -C graphs clean
    + $(MAKE) -C xml clean
    rm -rf $(OUTPUT) xml/xml.stamp graphs/graphs.stamp dir.stamp $(BOOK_BUILT_SOURCES)
    -###############################################################################
    -# graph rules
    -###############################################################################
    -.SUFFIXES: .png .fdp .dot .enum .class .hierarchy .key .neato
    -.fdp.png: dir.stamp
    - fdp -Tpng -o $(OUTPUT)$@ $<
    - rm -f $<
    -
    -.dot.png: dir.stamp
    - dot -Tpng -o $(OUTPUT)$@ $<
    - rm -f $<
    -
    -.neato.dot: dir.stamp
    - neato -o $@ $<
    - rm -f $<
    -
    -.key.dot:
    - $(TRANSFORM) $(TRANSFORM_OPTS) -o $@ sheets/hierarchy.xsl $<
    -
    -.enum.dot:
    - $(TRANSFORM) $(TRANSFORM_OPTS) -o $@ sheets/enum.xsl $<
    -
    -.class.dot:
    - $(TRANSFORM) $(TRANSFORM_OPTS) -o $@ sheets/class.xsl $<
    -
    -.hierarchy.neato:
    - $(TRANSFORM) $(TRANSFORM_OPTS) -o $@ sheets/hierarchy.xsl $<
    -
    -$(GRAPHS): dir.stamp
    -
    -graphs/graphs.stamp: $(GRAPHS)
    - touch graphs/graphs.stamp
    -
    -dir.stamp: $(OUTPUT_GRAPHS)
    - touch dir.stamp
    -
    -$(OUTPUT_GRAPHS):
    - mkdir -p $(OUTPUT_GRAPHS)
    -
    -###############################################################################
    -# book stuff
    -###############################################################################
    -xml/xml.stamp: $(BOOK_SOURCES) $(BOOK_BUILT_SOURCES) sheets/purple-objects.xsl
    - $(TRANSFORM) $(TRANSFORM_OPTS) -o $(OUTPUT) sheets/purple-objects.xsl $(BOOK)
    - touch xml/xml.stamp
    -
    -xml/todo.xml: .todo sheets/devtodo.xsl
    - $(TRANSFORM) $(TRANSFORM_OPTS) -o $@ sheets/devtodo.xsl $<
    -
    --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/xml/Makefile Mon May 06 02:58:01 2013 -0500
    @@ -0,0 +1,27 @@
    +top_srcdir := ..
    +
    +include $(top_srcdir)/Makefile.opts
    +
    +SOURCES := $(shell ls *.xml)
    +BUILT_SOURCES := todo.xml
    +
    +.PHONY: all clean
    +
    +all: dir.stamp
    +
    +todo.xml: $(top_srcdir)/.todo $(SHEETS_DIR)/devtodo.xsl
    + @echo " XSLT $@"
    + $(TRANSFORM) $(TRANSFORM_OPTS) -o $@ $(SHEETS_DIR)/devtodo.xsl $<
    +
    +
    +dir.stamp: $(SOURCES) $(BUILT_SOURCES) $(SHEETS_DIR)/purple-objects.xsl
    + @echo " XSLT $@"
    + $(TRANSFORM) $(TRANSFORM_OPTS) -o $(OUTPUT)/$@ $(SHEETS_DIR)/purple-objects.xsl purple-objects.xml 2>&1
    + @touch dir.stamp
    +
    +clean:
    + @echo " RM dir.stamp"
    + @rm -f dir.stamp
    + @echo " RM todo.xml"
    + @rm -f todo.xml
    +