bjori           Thu Jun  7 10:00:02 2007 UTC

  Modified files:              
    /phpdoc     Makefile.in configure.in 
  Log:
  Add partial build target
  
  # The xsl stylesheet is controled by passing --with-buildstyle=html|phpweb
  # to ./configure, default is html
  #
  # Usage: make part/<id>
  # i.e. : make part/function.strpos part/language.oop5 part/ref.filter
  
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/Makefile.in?r1=1.192&r2=1.193&diff_format=u
Index: phpdoc/Makefile.in
diff -u phpdoc/Makefile.in:1.192 phpdoc/Makefile.in:1.193
--- phpdoc/Makefile.in:1.192    Tue Feb 20 21:17:39 2007
+++ phpdoc/Makefile.in  Thu Jun  7 10:00:02 2007
@@ -16,7 +16,7 @@
 #
 
 #
-# $Id: Makefile.in,v 1.192 2007/02/20 21:17:39 colder Exp $
+# $Id: Makefile.in,v 1.193 2007/06/07 10:00:02 bjori Exp $
 #
 
 all: html
@@ -39,7 +39,7 @@
 [EMAIL PROTECTED]@
 
 [EMAIL PROTECTED]@
-
[EMAIL PROTECTED]@
 
 PHPBOOK=phpbook
 PHPDSSSL=$(PHPBOOK)/phpbook-dsssl
@@ -59,6 +59,7 @@
 HOWTO_XSL_SHEET=$(PHPXSL)/howto.xsl
 QUICKREF_XSL_SHEET=$(PHPXSL)/quickref.xsl
 XUL_XSL_SHEET=$(PHPXSL)/htmlhelp.xsl
+PARTIAL_STYLESHEET=$(PHPXSL)/@PARTIAL_STYLESHEET@
 
 BIGHTML_DEPS=$(HTML_STYLESHEET) $(PHPDSSSL)/html-common.dsl 
$(PHPDSSSL)/html-locale.dsl.in $(PHPDSSSL)/common.dsl.in images
 HTML_DEPS=$(HTML_STYLESHEET) $(PHPDSSSL)/html-common.dsl 
$(PHPDSSSL)/html-locale.dsl.in $(PHPDSSSL)/common.dsl.in images_html
@@ -324,6 +325,13 @@
        -jadetex $<
        -jadetex $<
 
+# {{{ partial builds
+part/%: manual.xml
+       @if test ! -d $(PARTIAL_STYLE); then mkdir $(PARTIAL_STYLE); fi
+       ${XSLTPROC} --stringparam rootid $(@F) $(PARTIAL_STYLESHEET) manual.xml
+       $(PHP) -q $(scriptdir)/html_syntax.php $(PARTIAL_STYLE) xsl 
$(PARTIAL_STYLE)/
+# }}}
+
 # {{{ tests
 
 # test all possible errors
http://cvs.php.net/viewvc.cgi/phpdoc/configure.in?r1=1.242&r2=1.243&diff_format=u
Index: phpdoc/configure.in
diff -u phpdoc/configure.in:1.242 phpdoc/configure.in:1.243
--- phpdoc/configure.in:1.242   Tue Mar 20 10:44:18 2007
+++ phpdoc/configure.in Thu Jun  7 10:00:02 2007
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.242 2007/03/20 10:44:18 bjori Exp $
+dnl $Id: configure.in,v 1.243 2007/06/07 10:00:02 bjori Exp $
 
 dnl autoconf initialisation
 AC_INIT()
@@ -494,6 +494,37 @@
 AC_SUBST(EXT_SOURCE)
 
 dnl {{{
+AC_MSG_CHECKING([for preferred buildstyle (for partial build)])
+AC_ARG_WITH(buildstyle,
+[  --with-buildstyle=name  Which build style to use for partial builds 
(html|phpweb)],
+[
+  case $withval in
+    html)
+      PARTIAL_STYLESHEET="html.xsl";
+      PARTIAL_STYLE="html"
+    ;;
+    phpweb)
+      PARTIAL_STYLESHEET="phpweb.xsl";
+      PARTIAL_STYLE="php"
+    ;;
+    *)
+      AC_MSG_RESULT([$withval])
+      AC_MSG_ERROR([Only phpweb and html are recognized])
+  esac
+
+  AC_MSG_RESULT([$withval])
+],[
+  PARTIAL_STYLESHEET="html.xsl";
+  PARTIAL_STYLE="html"
+  AC_MSG_RESULT([html (default)])
+])
+
+AC_SUBST(PARTIAL_STYLESHEET)
+AC_SUBST(PARTIAL_STYLE)
+
+dnl }}}
+
+dnl {{{
 AC_MSG_CHECKING(for CSS to use for html docs)
 AC_ARG_WITH(htmlcss,
 [  --with-htmlcss=URL      specify a CSS file to include in html docs],

Reply via email to