X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Makefile;h=a86f9aa8bbe8bdb0b160db7cea331ba605a3eeb0;hb=a327d891b3a2762bb6aabba3a6572b077f6003c0;hp=28353587c238dfdd91809d00d7debc751c2178e7;hpb=f22a494a1e222ff846a813d9046908c2e2c86a67;p=github%2Fshaarli%2FShaarli.git diff --git a/Makefile b/Makefile index 28353587..a86f9aa8 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,8 @@ # - 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 @@ -36,6 +36,10 @@ static_analysis_summary: code_sniffer_source copy_paste mess_detector_summary code_sniffer: code_sniffer_full +### - errors filtered by coding standard: PEAR, PSR1, PSR2, Zend... +PHPCS_%: + @$(BIN)/phpcs $(PHP_SOURCE) --report-full --report-width=200 --standard=$* + ### - errors by Git author code_sniffer_blame: @$(BIN)/phpcs $(PHP_SOURCE) --report-gitblame @@ -106,6 +110,7 @@ test: @echo "-------" @echo "PHPUNIT" @echo "-------" + @mkdir -p sandbox @$(BIN)/phpunit tests ## @@ -115,6 +120,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 @@ -122,8 +133,38 @@ doc: clean @git clone https://github.com/shaarli/Shaarli.wiki.git doc @rm -rf doc/.git +### Generate a custom sidebar +# +# Sidebar content: +# - convert GitHub-flavoured relative links to standard Markdown +# - trim HTML, only keep the list (