diff options
author | Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com> | 2018-07-26 17:05:42 +0530 |
---|---|---|
committer | nikramakrishnan <ramakrishnan.nikhil@gmail.com> | 2018-07-26 17:54:52 +0530 |
commit | 777268dc94603de9243e5f973bd1c7940569d66b (patch) | |
tree | 036dc1519551abf4e611fd0fc31771d23f22f79c | |
parent | d8860c188a360e10e7419f0bc68f66aba63e8263 (diff) | |
download | freetype2-777268dc94603de9243e5f973bd1c7940569d66b.tar.gz |
* 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'.
-rw-r--r-- | builds/freetype.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/builds/freetype.mk b/builds/freetype.mk index 6f68a0f65..12ef78960 100644 --- a/builds/freetype.mk +++ b/builds/freetype.mk @@ -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 |