[LTP] [PATCH v3 3/4] Makefile: Update 'doc' target, add 'doc-clean'

Andrea Cervesato andrea.cervesato@suse.com
Thu Mar 27 12:54:17 CET 2025


Hi Ricardo,

On 3/27/25 12:50, Ricardo B. Marli��re via ltp wrote:
> On Mon Mar 24, 2025 at 8:40 PM -03, Petr Vorel wrote:
>> 'doc' target previously run docparse documentation. Point it to doc/
>> directory so that it build sphinx docs. doc/ dir has metadata/ dir as
>> dependency, no need to specify it. Call also '.venv' target.
>>
>> NOTE: it's still possible to avoid virtualenv by calling 'make -C doc'
>  From the root dir ?
>
> $ make -C doc
> make: Entering directory '/mnt/ext/src/linux/ltp/mail/doc'
> make -C /mnt/ext/src/linux/ltp/mail/metadata
> make[1]: Entering directory '/mnt/ext/src/linux/ltp/mail/metadata'
> /mnt/ext/src/linux/ltp/mail/metadata/parse.sh > ltp.json
> make[1]: Leaving directory '/mnt/ext/src/linux/ltp/mail/metadata'
> if [ -d .venv ]; then . .venv/bin/activate; fi; sphinx-build -b html . html
> /bin/sh: line 1: sphinx-build: command not found
> make: *** [Makefile:24: all] Error 127
> make: Leaving directory '/mnt/ext/src/linux/ltp/mail/doc'
Yeah, sphinx should be included in the requirements.txt, otherwise it's 
not possible to access to it via virtualenv.

Andrea



More information about the ltp mailing list