freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] GSoC-2018-nikhil 777268d 2/4: * builds/freetype.mk (refdoc):


From: Nikhil Ramakrishnan
Subject: [freetype2] GSoC-2018-nikhil 777268d 2/4: * builds/freetype.mk (refdoc): Call docwriter.
Date: Thu, 26 Jul 2018 08:27:38 -0400 (EDT)

branch: GSoC-2018-nikhil
commit 777268dc94603de9243e5f973bd1c7940569d66b
Author: Nikhil Ramakrishnan <address@hidden>
Commit: nikramakrishnan <address@hidden>

    * 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'.
---
 builds/freetype.mk | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/builds/freetype.mk b/builds/freetype.mk
index 6f68a0f..12ef789 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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]