X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/8c84fa1ebadd78700189052f216a98a9546edc60..c25aaf4ffab73194680be3c70019da0eaafe63a2:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index eab6a5f..4bfa3e5 100644 --- a/Makefile +++ b/Makefile @@ -25,42 +25,24 @@ # $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 +VERSION=0.11 +MODULE_FILE=BIFE.php +MODULE_NAME=Core +PHP_FILES=$(filter-out $(MODULE_FILE),$(subst ./,,$(shell find -name '*.php'))) +EXAMPLE_FILES=$(subst ./,,$(shell find examples -regex '.*\.svn.*')) +DOC_FILES=README ROADMAP 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 +package: package.xml $(PHP_FILES) $(EXAMPLE_FILES) $(DOC_FILES) + pear package -pear-packages: BIFE-$(VERSION).tgz +code: bife.xmi xmi2code.config + @xmi2code -BIFE-$(VERSION).tgz: $(PHP_FILES) package.xml - pear package +code-clean: + @find -name '*.bak' | xargs rm -vf -build/BIFE.php: $(CORE_FILES) $(X2C_TEMPLATE) +$(MODULE_FILE): code $(PHP_FILES) $(X2C_TEMPLATE) @( \ ( \ cat $(X2C_TEMPLATE) | \ @@ -69,15 +51,15 @@ build/BIFE.php: $(CORE_FILES) $(X2C_TEMPLATE) egrep -v '^//$$' \ ); \ echo '//'; \ - echo -n '// BIFE Core Version $(VERSION) - '; \ + echo -n '// BIFE $(MODULE_NAME) (version $(VERSION)) - '; \ date; \ echo '//'; \ ( \ - cat $(CORE_FILES) | \ + cat $(PHP_FILES) | \ grep -v require_once | \ grep -v '?>' | \ grep -v '' \ - ) > build/BIFE.php + ) > $(MODULE_FILE)