X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/94e74dd4e317d5217ada7bd1c5adefc1c34efcb7..972d7506d82949eed70dd5095852b69de1c79d2f:/base/Makefile diff --git a/base/Makefile b/base/Makefile index 4bfa3e5..0da066a 100644 --- a/base/Makefile +++ b/base/Makefile @@ -25,41 +25,17 @@ # $Id$ # -VERSION=0.11 -MODULE_FILE=BIFE.php -MODULE_NAME=Core -PHP_FILES=$(filter-out $(MODULE_FILE),$(subst ./,,$(shell find -name '*.php'))) +MODULE=base + +PHP_FILES=$(subst ./,,$(shell find src -name '*.php')) EXAMPLE_FILES=$(subst ./,,$(shell find examples -regex '.*\.svn.*')) DOC_FILES=README ROADMAP -X2C_TEMPLATE=xmi2code.tpl.php package: package.xml $(PHP_FILES) $(EXAMPLE_FILES) $(DOC_FILES) pear package -code: bife.xmi xmi2code.config +code: $(MODULE).xmi xmi2code.config @xmi2code code-clean: - @find -name '*.bak' | xargs rm -vf - -$(MODULE_FILE): code $(PHP_FILES) $(X2C_TEMPLATE) - @( \ - ( \ - cat $(X2C_TEMPLATE) | \ - grep -v '@@date' | \ - grep -v '$$Id' | \ - egrep -v '^//$$' \ - ); \ - echo '//'; \ - echo -n '// BIFE $(MODULE_NAME) (version $(VERSION)) - '; \ - date; \ - echo '//'; \ - ( \ - cat $(PHP_FILES) | \ - grep -v require_once | \ - grep -v '?>' | \ - grep -v '' \ - ) > $(MODULE_FILE) + @find src -name '*.bak' | xargs rm -vf