X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/5a38104a646a3e60a7c29f816f034691ae354351..ae45b7ad8f896784fe169d02c726098284f14f25:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 407e379..2cf53b3 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,8 @@ PHP_FILES=src/BIFE/*.php META_FILES=xmi2code.config xmi2code.tpl.php Makefile Doxyfile package.xml DOC_FILES=doc/bife.xmi 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: doc/bife.xmi xmi2code.config xmi2code -a @@ -58,3 +60,25 @@ pear-packages: BIFE-$(VERSION).tgz BIFE-$(VERSION).tgz: $(PHP_FILES) $(DOC_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