mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-01 04:41:37 +01:00
60 lines
1.7 KiB
Makefile
Executable File
60 lines
1.7 KiB
Makefile
Executable File
# +----------------------------------------------------------------------+
|
|
# | 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@
|
|
JADE=@JADE@ -D . -wno-idref
|
|
XMLDCL=./dtds/dbxml-4.1.2/phpdocxml.dcl
|
|
CATALOG=@CATALOG@
|
|
HTML_STYLESHEET=dsssl/html.dsl
|
|
PHPWEB_STYLESHEET=dsssl/php.dsl
|
|
|
|
# }}}
|
|
|
|
#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
|
|
|
|
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
|
|
|
|
test:
|
|
$(NSGMLS) -i lang-$(LANG) -s $(XMLDCL) manual.xml
|
|
|
|
|
|
# {{{ cleanup
|
|
|
|
clean:
|
|
rm -f Makefile config.* manual.xml configure entities/version.ent *.fot
|
|
rm -fr autom4te.cache html phpweb
|
|
|
|
# }}}
|