]> git.llucax.com Git - software/bife/bife-all.git/blobdiff - Makefile
WARNING: This is a broken revision!!!
[software/bife/bife-all.git] / Makefile
index 407e37900a4c232ac71890b81c4713da4d0714e3..2cf53b30ce5931235ed0013d681b7f0540f7c3df 100644 (file)
--- 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 '<?php' | \
+                       egrep -v '^\s*//' \
+               ); \
+               echo -n '?>' \
+       ) > build/BIFE.php