Skip to content

Commit

Permalink
make: add option to disable building/installing the docs
Browse files Browse the repository at this point in the history
`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 <[email protected]>
  • Loading branch information
nicholasbishop authored and vathpela committed Jan 29, 2024
1 parent 90e88b2 commit 57920a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ include $(TOPDIR)/src/include/defaults.mk
include $(TOPDIR)/src/include/coverity.mk
include $(TOPDIR)/src/include/scan-build.mk

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

all : | efivar.spec src/include/version.mk prep
all clean install prep :
Expand Down
4 changes: 4 additions & 0 deletions src/include/defaults.mk
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,8 @@ COMMIT_ID=$(shell git log -1 --pretty=%H 2>/dev/null || echo master)

NAME=efivar

# Docs are enabled by default. Set ENABLE_DOCS=0 to disable
# building/installing docs.
ENABLE_DOCS ?= 1

# vim:ft=make

0 comments on commit 57920a6

Please sign in to comment.