btrfs-progs: Add support for DISABLE_DOCUMENTATION

This commit adds the support for a make variable named
"DISABLE_DOCUMENTATION", which allows to disable the build of the
documentation. This is useful in contexts where the tools needed to
build the documentation are not necessarily available.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
Gustavo Zacarias 2014-08-30 14:48:09 +02:00 committed by David Sterba
parent 101a8e1326
commit ef208e98ce
1 changed files with 7 additions and 2 deletions

View File

@ -57,10 +57,15 @@ btrfs_image_libs = -lpthread
btrfs_fragments_libs = -lgd -lpng -ljpeg -lfreetype btrfs_fragments_libs = -lgd -lpng -ljpeg -lfreetype
SUBDIRS = SUBDIRS =
BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS)) build-Documentation BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS))
INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS)) install-Documentation INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS))
CLEANDIRS = $(patsubst %,clean-%,$(SUBDIRS)) CLEANDIRS = $(patsubst %,clean-%,$(SUBDIRS))
ifneq ($(DISABLE_DOCUMENTATION),1)
BUILDDIRS += build-Documentation
INSTALLDIRS += install-Documentation
endif
.PHONY: $(SUBDIRS) .PHONY: $(SUBDIRS)
.PHONY: $(BUILDDIRS) .PHONY: $(BUILDDIRS)
.PHONY: $(INSTALLDIRS) .PHONY: $(INSTALLDIRS)