diff --git a/.gitignore b/.gitignore index 35842a7..5ac2b6c 100644 --- a/.gitignore +++ b/.gitignore @@ -193,4 +193,7 @@ mg-bot-api-client-php.pages/* build/* # Test report -test-report.xml \ No newline at end of file +test-report.xml + +# GraphViz Dot +dot/* \ No newline at end of file diff --git a/Makefile b/Makefile index 0f75d89..207e8d9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ ROOT_DIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) SRC_DIR=$(ROOT_DIR)/src BIN_DIR=$(ROOT_DIR)/bin +export PATH := $(PATH):$(ROOT_DIR)/dot deps: @echo "==> Installing dependencies" @@ -28,6 +29,13 @@ ifeq ($(wildcard *.phar), ) @wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v3.0.0-alpha.3/phpDocumentor.phar -O phpDocumentor.phar @wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v3.0.0-alpha.3/phpDocumentor.phar.pubkey -O phpDocumentor.phar.pubkey @chmod +x phpDocumentor.phar +endif +ifeq (, $(shell which dot)) +ifeq ($(wildcard dot/dot), ) + @mkdir -p $(ROOT_DIR)/dot + @wget https://github.com/Neur0toxine/mwgraphviz/raw/master/dot_static -O $(ROOT_DIR)/dot/dot + @chmod +x $(ROOT_DIR)/dot/dot +endif endif @php phpDocumentor.phar --config $(ROOT_DIR)/phpdoc.dist.xml