# vim: set noexpandtab tabstop=4 softtabstop=4 shiftwidth=4: # +--------------------------------------------------------------------+ # | BIFE - Buil It FastEr | # +--------------------------------------------------------------------+ # | This file is part of BIFE. | # | | # | BIFE is free software; you can redistribute it and/or modify it | # | under the terms of the GNU General Public License as published by | # | the Free Software Foundation; either version 2 of the License, or | # | (at your option) any later version. | # | | # | BIFE is distributed in the hope that it will be useful, but | # | WITHOUT ANY WARRANTY; without even the implied warranty of | # | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | # | General Public License for more details. | # | | # | You should have received a copy of the GNU General Public License | # | along with Hooks; if not, write to the Free Software Foundation, | # | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | # +--------------------------------------------------------------------+ # | Created: Mon May 19 00:16:56 ART 2003 | # | Authors: Leandro Lucarella | # +--------------------------------------------------------------------+ # # $Id$ # VERSION=0.10 PHP_FILES=src/BIFE/*.php META_FILES=xmi2code.config xmi2code.tpl.php Makefile Doxyfile package.xml APIDOC_FILES=doc/api/* doc/api/*/* CORE_FILES=src/BIFE/Widget.php src/BIFE/Container.php src/BIFE/Root.php src/BIFE/Fallback.php src/BIFE/Parser.php X2C_TEMPLATE=xmi2code.tpl.php code: core/bife.xmi core/xmi2code.config cd core && xmi2code -a all: code doc pear-packages tarball doc: api api: Doxyfile $(PHP_FILES) doxygen clean-bak: find -name '*.bak' | xargs rm -vf clean-doc: rm -fvR doc/api/html doc/api/rtf doc/api/latex clean: clean-doc clean-backup tarball: bife.tar.gz bife.tar.gz: $(PHP_FILES) $(META_FILES) tar --exclude bife.tar.gz --exclude bife/doxygen.warn --exclude .svn --exclude '*.bak' --exclude '*.swp' --exclude 'bife/doc/api/*' -C .. -cvzf bife.tar.gz bife pear-packages: BIFE-$(VERSION).tgz BIFE-$(VERSION).tgz: $(PHP_FILES) package.xml pear package build/BIFE.php: $(CORE_FILES) $(X2C_TEMPLATE) @( \ ( \ cat $(X2C_TEMPLATE) | \ grep -v '@@date' | \ grep -v '$$Id' | \ egrep -v '^//$$' \ ); \ echo '//'; \ echo -n '// BIFE Core Version $(VERSION) - '; \ date; \ echo '//'; \ ( \ cat $(CORE_FILES) | \ grep -v require_once | \ grep -v '?>' | \ grep -v '' \ ) > build/BIFE.php