X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/537561c5709c3f574c5d406cb4cb28b3522f2566..884d958d4c76bed1625460b591c599094f7690c8:/Makefile?ds=inline diff --git a/Makefile b/Makefile index 808da6b..70f7383 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: +# vim: set noexpandtab tabstop=4 softtabstop=4 shiftwidth=4: # +--------------------------------------------------------------------+ # | BIFE - Buil It FastEr | # +--------------------------------------------------------------------+ @@ -25,16 +25,22 @@ # $Id$ # -all: doc code +VERSION=0.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/*/* + +code: doc/bife.xmi xmi2code.config + xmi2code -a + +all: code doc pear-packages tarball doc: api -api: Doxyfile src/*.php src/BIFE/*.php +api: Doxyfile $(PHP_FILES) doxygen -code: doc/bife.xmi - xmi2code -a - clean-code: find src/ -name '*.bak' | xargs rm -vf @@ -43,5 +49,12 @@ clean-doc: clean: clean-doc clean-backup -tarball: - tar --exclude bife/doxygen.warn --exclude .svn --exclude .bak --exclude .swp --exclude 'bife/doc/api/*' -C .. -cvzf ../bife.tar.gz bife +tarball: bife.tar.gz + +bife.tar.gz: $(PHP_FILES) $(DOC_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) $(DOC_FILES) package.xml + pear package