X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Makefile;h=75c54f2875d012539e1ff3be563cabacdbf77041;hb=53603f582300fc2709932b62652a5acfed088910;hp=05578525097b1526b55d101a9f77d0e0b13ec903;hpb=992af0b9d77cb4fbac2c37ef8d5896042d67a2a3;p=github%2Fshaarli%2FShaarli.git diff --git a/Makefile b/Makefile index 05578525..75c54f28 100644 --- a/Makefile +++ b/Makefile @@ -13,10 +13,10 @@ # - enable in php.ini BIN = vendor/bin -PHP_SOURCE = index.php application tests -PHP_COMMA_SOURCE = index.php,application,tests +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 @@ -98,6 +98,20 @@ mess_detector_summary: mess_title 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 @@ -110,6 +124,7 @@ test: @echo "-------" @echo "PHPUNIT" @echo "-------" + @mkdir -p sandbox @$(BIN)/phpunit tests ## @@ -119,6 +134,12 @@ test: ### 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