forked from minhngoc25a/freetype2
* builds/freetype.mk (refdoc): Call docwriter.
Change target `refdoc' to call docwriter. Steps: * Install required python modules using `pip'. * Call docwriter with required options. * Change to the docs directory and call `mkdocs'.
This commit is contained in:
parent
d8860c188a
commit
777268dc94
|
@ -293,14 +293,20 @@ library: $(PROJECT_LIBRARY)
|
|||
# Option `-B' disables generation of .pyc files (available since python 2.6)
|
||||
#
|
||||
refdoc:
|
||||
python -B $(SRC_DIR)/tools/docmaker/docmaker.py \
|
||||
@echo Installing requirements...
|
||||
python -m pip install --user -r \
|
||||
$(SRC_DIR)/tools/docwriter/requirements.txt
|
||||
@echo "Running docwriter..."
|
||||
python -B $(SRC_DIR)/tools/docwriter/docwriter.py \
|
||||
--prefix=ft2 \
|
||||
--title=FreeType-$(version) \
|
||||
--output=$(DOC_DIR) \
|
||||
$(PUBLIC_DIR)/*.h \
|
||||
$(PUBLIC_DIR)/config/*.h \
|
||||
$(PUBLIC_DIR)/cache/*.h
|
||||
|
||||
@echo Building static site...
|
||||
cd $(DOC_DIR) && mkdocs build
|
||||
@echo Done.
|
||||
|
||||
.PHONY: clean_project_std distclean_project_std
|
||||
|
||||
|
|
Loading…
Reference in New Issue