PHP_SOURCE = index.php application tests plugins
PHP_COMMA_SOURCE = index.php,application,tests,plugins
-all: static_analysis_summary test
+all: static_analysis_summary check_permissions test
##
# Concise status of the project
printf "$$warnings\t$$rule\n"; \
done;
+##
+# Checks source file & script permissions
+##
+check_permissions:
+ @echo "----------------------"
+ @echo "Check file permissions"
+ @echo "----------------------"
+ @for file in `git ls-files`; do \
+ if [ -x $$file ]; then \
+ errors=true; \
+ echo "$${file} is executable"; \
+ fi \
+ done; [ -z $$errors ] || false
+
##
# PHPUnit
# Runs unitary and functional tests
@echo "-------"
@echo "PHPUNIT"
@echo "-------"
+ @mkdir -p sandbox
@$(BIN)/phpunit tests
##
### remove all unversioned files
clean:
@git clean -df
+ @rm -rf sandbox
+
+### generate Doxygen documentation
+doxygen: clean
+ @rm -rf doxygen
+ @( cat Doxyfile ; echo "PROJECT_NUMBER=`git describe`" ) | doxygen -
### update the local copy of the documentation
doc: clean