2004-03-18 17:12:45 +00:00
|
|
|
# +----------------------------------------------------------------------+
|
|
|
|
|
# | PHP Version 5 |
|
|
|
|
|
# +----------------------------------------------------------------------+
|
|
|
|
|
# | Copyright (c) 1997-2004 The PHP Group |
|
|
|
|
|
# +----------------------------------------------------------------------+
|
|
|
|
|
# | This source file is subject to version 3.0 of the PHP license, |
|
|
|
|
|
# | that is bundled with this package in the file LICENSE, and is |
|
|
|
|
|
# | available through the world-wide-web at the following url: |
|
|
|
|
|
# | http://www.php.net/license/3_0.txt. |
|
|
|
|
|
# | If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
|
# | obtain it through the world-wide-web, please send a note to |
|
|
|
|
|
# | license@php.net so we can mail you a copy immediately. |
|
|
|
|
|
# +----------------------------------------------------------------------+
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# $Id$
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
all: html
|
|
|
|
|
|
|
|
|
|
# {{{ variables
|
|
|
|
|
|
|
|
|
|
PHP=@PHP@
|
|
|
|
|
LANG=@LANG@
|
|
|
|
|
NSGMLS=@NSGMLS@
|
2004-03-23 18:15:53 +00:00
|
|
|
JADE=@JADE@ -D . -wno-idref
|
2004-07-29 18:32:05 +00:00
|
|
|
XSLTPROC=@XSLTPROC@
|
|
|
|
|
FOP=@FOP@
|
2004-03-23 18:15:53 +00:00
|
|
|
XMLDCL=./dtds/dbxml-4.1.2/phpdocxml.dcl
|
|
|
|
|
CATALOG=@CATALOG@
|
|
|
|
|
HTML_STYLESHEET=dsssl/html.dsl
|
|
|
|
|
PHPWEB_STYLESHEET=dsssl/php.dsl
|
2004-03-18 17:12:45 +00:00
|
|
|
|
|
|
|
|
# }}}
|
|
|
|
|
|
2004-03-23 18:15:53 +00:00
|
|
|
#default behaviour
|
|
|
|
|
all:html
|
|
|
|
|
|
|
|
|
|
FORCE:
|
|
|
|
|
|
|
|
|
|
html: FORCE
|
|
|
|
|
@test -d html || mkdir html
|
|
|
|
|
$(JADE) $(CATALOG) -d $(HTML_STYLESHEET) -V use-output-dir -t sgml $(XMLDCL) manual.xml
|
2004-03-24 15:31:17 +00:00
|
|
|
$(PHP) scripts/html_syntax.php html html/
|
2004-03-18 17:12:45 +00:00
|
|
|
|
2004-03-23 18:15:53 +00:00
|
|
|
web: FORCE
|
|
|
|
|
@test -d phpweb || mkdir phpweb
|
|
|
|
|
$(JADE) $(CATALOG) -d $(PHPWEB_STYLESHEET) -V use-output-dir -t sgml $(XMLDCL) manual.xml
|
|
|
|
|
$(PHP) scripts/generate_web.php
|
2004-03-24 15:54:31 +00:00
|
|
|
$(PHP) scripts/html_syntax.php php phpweb/
|
2004-03-23 18:15:53 +00:00
|
|
|
|
2004-07-29 18:32:05 +00:00
|
|
|
pdf: FORCE
|
|
|
|
|
${XSLTPROC} -o manual.fo xsl/fo.xsl manual.xml
|
|
|
|
|
${FOP} -fo manual.fo -pdf manual.pdf
|
|
|
|
|
|
2004-03-23 18:15:53 +00:00
|
|
|
test:
|
|
|
|
|
$(NSGMLS) -i lang-$(LANG) -s $(XMLDCL) manual.xml
|
2004-03-18 17:12:45 +00:00
|
|
|
|
|
|
|
|
|
2004-04-14 15:25:57 +00:00
|
|
|
revcheck: FORCE
|
|
|
|
|
$(PHP) -f scripts/revcheck.php $(LANG) > revcheck.html
|
|
|
|
|
|
2004-03-18 17:12:45 +00:00
|
|
|
# {{{ cleanup
|
|
|
|
|
|
|
|
|
|
clean:
|
2004-07-29 18:32:05 +00:00
|
|
|
rm -f Makefile config.* manual.xml configure entities/version.ent *.fot dsssl/html-common.dsl manual.pdf
|
|
|
|
|
rm -f revcheck.html file-entities.php entities/file-entities.ent scripts/file-entities.php manual.fo
|
2004-03-23 18:15:53 +00:00
|
|
|
rm -fr autom4te.cache html phpweb
|
2004-03-18 17:12:45 +00:00
|
|
|
|
|
|
|
|
# }}}
|