+
+##
+# PHPUnit
+# Runs unitary and functional tests
+# Generates an HTML coverage report if Xdebug is enabled
+#
+# See phpunit.xml for configuration
+# https://phpunit.de/manual/current/en/appendixes.configuration.html
+##
+test: clean
+ @echo "-------"
+ @echo "PHPUNIT"
+ @echo "-------"
+ @$(BIN)/phpunit tests
+
+##
+# Targets for repository and documentation maintenance
+##
+
+### remove all unversioned files
+clean:
+ @git clean -df
+
+### 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
+
+### Convert local markdown documentation to HTML
+htmldoc:
+ for file in `find doc/ -maxdepth 1 -name "*.md"`; do \
+ pandoc -f markdown_github -t html5 -s -c "github-markdown.css" -o doc/`basename $$file .md`.html "$$file"; \
+ done;