X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Makefile;h=a86f9aa8bbe8bdb0b160db7cea331ba605a3eeb0;hb=0baf7842fc0cf4cbd5ca2b8c5ae6dc7a59c07700;hp=80efcfaafd0e2973c4ea73aaf0c33e3ff77a0ca0;hpb=38a0c256d200df872990f6ed450aceaf215eeafd;p=github%2Fshaarli%2FShaarli.git diff --git a/Makefile b/Makefile index 80efcfaa..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 @@ -102,10 +106,11 @@ mess_detector_summary: mess_title # See phpunit.xml for configuration # https://phpunit.de/manual/current/en/appendixes.configuration.html ## -test: clean +test: @echo "-------" @echo "PHPUNIT" @echo "-------" + @mkdir -p sandbox @$(BIN)/phpunit tests ## @@ -114,16 +119,52 @@ test: clean ### remove all unversioned files clean: - @git clean -df + @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 - @rm -rf doc - @git clone https://github.com/shaarli/Shaarli.wiki.git doc - @rm -rf doc/.git + @rm -rf doc + @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 (