-mediawiki_version := $(shell php -r "include('commandLine.inc'); print SpecialVersion::getVersion();")
-
help:
@echo "Run 'make test' to run the parser tests."
- @echo "Run 'make doc' to run the phpdoc generation."
- @echo "Run 'make doxydoc' (unsupported doxygen generation)."
+ @echo "Run 'make doc' to run the doxygen generation."
+ @echo "Run 'make man' to run the doxygen generation with man pages."
test:
- php parserTests.php --quiet
+ php tests/parser/parserTests.php --quiet
doc:
php mwdocgen.php --all
- echo 'Doc generation done. Look at ./docs/html/'
+ ./mwjsduck-gen
+ @echo 'PHP documentation (by Doxygen) in ./docs/html/'
+ @echo 'JS documentation (by JSDuck) in ./docs/js/'
-doxydoc:
- cd .. && /bin/sed -e "s/MW_VERSION_PLACEHOLDER/$(mediawiki_version)/" maintenance/mwdoxygen.cfg | doxygen -
- echo 'Doc generation done. Look at ./docs/html/'
+man:
+ php mwdocgen.php --all --generate-man
+ @echo 'Doc generation done. Look at ./docs/html/ and ./docs/man'
+ @echo 'You might want to update your MANPATH currently:'
+ @echo 'MANPATH: $(MANPATH)'