# # Helper Makefile # # $Id$ cmdphp = bin/* PHP ?= `which php` PEAR = ./bin/pear -c ./lib/pear/config update: svn update make flushcache doc: phpdoc phpdoc: rm -rf doc/api mkdir doc/api phpdoc -c doc/phpDocumentor.ini install: dirs perms version dirs: mkdir -p var/tmp mkdir -p var/cache mkdir -p var/log mkdir -p var/spool distclean: rm -rf var/* rm -rf doc/api flushcache: FORCE rm -rf var/cache/* rm -rf var/tmp/* make version test: FORCE @cd test/unit && php all.php && cd ../.. syntaxtest: FORCE find . -name \*.php -type f -exec php -l {} \; | grep "Parse error" perms: chmod -R go+w var pear_list: $(PEAR) list pear_install_all: $(PEAR) install pear $(PEAR) channel-update pear.php.net $(PEAR) upgrade-all $(PEAR) install XML_Parser XML_RSS-beta XML_Serializer-beta XML_Beautifier XML_Util XML_Tree $(PEAR) install Log $(PEAR) install Text_Highlighter-beta $(PEAR) install Mail Mail_mime Mail_mimeDecode $(PEAR) install Testing_FIT-beta version: FORCE svn info > htdoc/version.txt cmd: $(cmdphp) $(cmdphp): FORCE sed -i '1c#!'$(PHP)'\' $@ FORCE: