Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make: add option to disable building/installing the docs #241

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

nicholasbishop
Copy link
Contributor

@nicholasbishop nicholasbishop commented Mar 8, 2023

ENABLE_DOCS=0 make will remove the docs subdirectory from the list of targets. This is useful if the target OS does not ship manpages and so the builder doesn't have mandoc.

Makefile Outdated
SUBDIRS := src docs
else
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be simpler:

SUBDIRS := src
ifeq ($(ENABLE_DOCS), 1)
SUBDIRS += docs
endif

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, updated.

`ENABLE_DOCS=0 make` will remove the docs subdirectory from the list of
targets. This is useful if the target OS does not ship manpages.

Signed-off-by: Nicholas Bishop <nicholasbishop@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants