doc: add website_documentation make target
make website_documentation WEBSITE_DIR=/var/www/documentation/2.0
This commit is contained in:
parent
12a65c282f
commit
e7dd42a299
8
Makefile
8
Makefile
|
@ -133,6 +133,9 @@ LLNGTESTLDAP_SLAPD_BIN=/usr/sbin/slapd
|
|||
LLNGTESTLDAP_SLAPADD_BIN=/usr/sbin/slapadd
|
||||
LLNGTESTLDAP_SCHEMA_DIR=/etc/ldap/schema
|
||||
|
||||
# Default website destination
|
||||
WEBSITE_DIR=doc/sources/admin/_build/html
|
||||
|
||||
# Other
|
||||
SRCCOMMONDIR=lemonldap-ng-common
|
||||
SRCHANDLERDIR=lemonldap-ng-handler
|
||||
|
@ -1000,6 +1003,7 @@ clean: common_clean handler_clean portal_clean manager_clean stop_web_server
|
|||
@rm -f $$(find */ -name '*bak' -delete)
|
||||
@rm -rf doc/devel
|
||||
@rm -rf doc/pages/documentation/current/*
|
||||
@rm -rf "$(WEBSITE_DIR)"
|
||||
@rm -vf *gz *zip
|
||||
@rm -rf lemonldap-ng-$(VERSION)
|
||||
@echo "Cleaned"
|
||||
|
@ -1132,6 +1136,10 @@ documentation:
|
|||
-Dhtml_theme_path=. -Dhtml_theme=manager_doc_theme\
|
||||
doc/sources/admin/ doc/pages/documentation/current/
|
||||
|
||||
website_documentation:
|
||||
sphinx-build -b html -d /tmp/doctrees \
|
||||
doc/sources/admin/ "$(WEBSITE_DIR)"
|
||||
|
||||
test-diff:
|
||||
@for file in `find lemonldap-ng-*/lib -type f`; do \
|
||||
$(DIFF) $$file `echo $$file|sed -e s/lib/blib\\\/lib/`; \
|
||||
|
|
Loading…
Reference in New Issue
Block a user